diff --git a/src/engine/e2e_tests/process/deployment/deployment.e2e.test.js b/src/engine/e2e_tests/process/deployment/deployment.e2e.test.js index 115d80f29..a8ff14202 100644 --- a/src/engine/e2e_tests/process/deployment/deployment.e2e.test.js +++ b/src/engine/e2e_tests/process/deployment/deployment.e2e.test.js @@ -4,7 +4,7 @@ const request = require('supertest')('localhost'); const { startMockEngineProcesses } = require('./startEngines.js'); const { ensureCorrectProceedNamespace } = require('@proceed/bpmn-helper'); -jest.setTimeout(60000); +jest.setTimeout(100000); function killEngineProcess(engineProcess) { return new Promise((resolve) => { diff --git a/src/management-system-v2/lib/process-export/export-preparation.ts b/src/management-system-v2/lib/process-export/export-preparation.ts index c1f171e84..114fb2564 100644 --- a/src/management-system-v2/lib/process-export/export-preparation.ts +++ b/src/management-system-v2/lib/process-export/export-preparation.ts @@ -43,7 +43,7 @@ export type ProcessExportData = { name?: string; bpmn: string; isImport: boolean; - subprocesses: { id: string; name: string }[]; + subprocesses: { id: string; name?: string }[]; imports: { definitionId: string; processVersion: string }[]; }; }; @@ -111,7 +111,7 @@ function getImagesReferencedByHtml(html: string) { * * @param bpmn */ -async function getCollapsedSubprocessIds(bpmn: string) { +async function getCollapsedSubprocessInfos(bpmn: string) { const definitions = await toBpmnObject(bpmn); const subprocesses = getElementsByTagName(definitions, 'bpmn:SubProcess'); @@ -134,7 +134,7 @@ type ExportMap = { name?: string; bpmn: string; isImport: boolean; - subprocesses: { id: string; name: string }[]; + subprocesses: { id: string; name?: string }[]; imports: { definitionId: string; processVersion: string }[]; }; }; @@ -253,7 +253,7 @@ export async function prepareExport( if (options.subprocesses) { for (const [version, { bpmn }] of Object.entries(exportData[definitionId].versions)) { exportData[definitionId].versions[version].subprocesses = ( - await getCollapsedSubprocessIds(bpmn) + await getCollapsedSubprocessInfos(bpmn) ).reverse(); } }