@valtimo/case 13.30.0 → 13.32.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fesm2022/valtimo-case.mjs +9 -3
- package/fesm2022/valtimo-case.mjs.map +1 -1
- package/lib/components/case-process-start-modal/case-process-start-modal.component.d.ts.map +1 -1
- package/lib/components/case-supporting-process-start-modal/case-supporting-process-start-modal.component.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -4636,6 +4636,8 @@ class CaseSupportingProcessStartModalComponent {
|
|
|
4636
4636
|
}
|
|
4637
4637
|
loadProcessLink() {
|
|
4638
4638
|
this.startProcessLinkType$.next(null);
|
|
4639
|
+
this.formViewModelDynamicContainer?.clear();
|
|
4640
|
+
this.formCustomComponentDynamicContainer?.clear();
|
|
4639
4641
|
combineLatest([this.processDefinitionId$, this.documentId$])
|
|
4640
4642
|
.pipe(take$1(1), switchMap(([processDefinitionId, documentId]) => this.processService.getProcessDefinitionStartProcessLink(processDefinitionId, documentId, null)))
|
|
4641
4643
|
.subscribe(startProcessResult => {
|
|
@@ -4756,7 +4758,7 @@ class CaseSupportingProcessStartModalComponent {
|
|
|
4756
4758
|
this._formViewModelSubscription = this.closeModalEvent.subscribe(() => {
|
|
4757
4759
|
formViewModelComponent.destroy();
|
|
4758
4760
|
});
|
|
4759
|
-
this.isLoading$.next(
|
|
4761
|
+
this.isLoading$.next(false);
|
|
4760
4762
|
}
|
|
4761
4763
|
setFormCustomComponent(formCustomComponentKey) {
|
|
4762
4764
|
this.formCustomComponentDynamicContainer.clear();
|
|
@@ -4765,11 +4767,12 @@ class CaseSupportingProcessStartModalComponent {
|
|
|
4765
4767
|
this._formCustomComponentConfig$.pipe(take$1(1)).subscribe(formCustomComponentConfig => {
|
|
4766
4768
|
const customComponent = formCustomComponentConfig[formCustomComponentKey];
|
|
4767
4769
|
const renderedComponent = this.formCustomComponentDynamicContainer.createComponent(customComponent);
|
|
4768
|
-
combineLatest([this.processDefinitionKey$, this.caseDefinitionKey$])
|
|
4770
|
+
combineLatest([this.processDefinitionKey$, this.caseDefinitionKey$, this.documentId$])
|
|
4769
4771
|
.pipe(take$1(1))
|
|
4770
|
-
.subscribe(([processDefinitionKey, caseDefinitionKey]) => {
|
|
4772
|
+
.subscribe(([processDefinitionKey, caseDefinitionKey, documentId]) => {
|
|
4771
4773
|
renderedComponent.instance.processDefinitionKey = processDefinitionKey;
|
|
4772
4774
|
renderedComponent.instance.documentDefinitionName = caseDefinitionKey;
|
|
4775
|
+
renderedComponent.instance.documentId = documentId;
|
|
4773
4776
|
});
|
|
4774
4777
|
renderedComponent.instance.submittedEvent.subscribe(() => {
|
|
4775
4778
|
this.formSubmitted();
|
|
@@ -5353,6 +5356,8 @@ class CaseProcessStartModalComponent {
|
|
|
5353
5356
|
this.processLinkId = null;
|
|
5354
5357
|
this.formDefinition = null;
|
|
5355
5358
|
this.formFlowInstanceId = null;
|
|
5359
|
+
this.formViewModelDynamicContainer?.clear();
|
|
5360
|
+
this.formCustomComponentDynamicContainer?.clear();
|
|
5356
5361
|
if (this._useStartEventNameAsStartFormTitle) {
|
|
5357
5362
|
this.processService.getProcessDefinitionXml(this.processDefinitionId).subscribe(result => {
|
|
5358
5363
|
this._startEventName = this.startModalService.getStandardStartEventTitle(result.bpmn20Xml);
|
|
@@ -5515,6 +5520,7 @@ class CaseProcessStartModalComponent {
|
|
|
5515
5520
|
const renderedComponent = this.formCustomComponentDynamicContainer.createComponent(customComponent);
|
|
5516
5521
|
renderedComponent.instance.processDefinitionKey = this.processDefinitionKey;
|
|
5517
5522
|
renderedComponent.instance.documentDefinitionName = this.caseDefinitionKey;
|
|
5523
|
+
renderedComponent.instance.documentId = null;
|
|
5518
5524
|
renderedComponent.instance.submittedEvent.subscribe(() => {
|
|
5519
5525
|
this.closeCdsModal();
|
|
5520
5526
|
});
|