|
@@ -1,6 +1,6 @@
|
|
import WorkflowEngine from '../workflow-engine';
|
|
import WorkflowEngine from '../workflow-engine';
|
|
import dataExporter from '@/utils/data-exporter';
|
|
import dataExporter from '@/utils/data-exporter';
|
|
-
|
|
|
|
|
|
+/* to-do pass prev workflow tab id into the next one */
|
|
export function workflow(flow) {
|
|
export function workflow(flow) {
|
|
return new Promise((resolve, reject) => {
|
|
return new Promise((resolve, reject) => {
|
|
const currentWorkflow = this.workflows.find(({ id }) => id === flow.itemId);
|
|
const currentWorkflow = this.workflows.find(({ id }) => id === flow.itemId);
|
|
@@ -36,8 +36,13 @@ export function workflow(flow) {
|
|
workflowId: currentWorkflow.id,
|
|
workflowId: currentWorkflow.id,
|
|
workflowName: currentWorkflow.name,
|
|
workflowName: currentWorkflow.name,
|
|
});
|
|
});
|
|
-
|
|
|
|
- resolve({ id, name: currentWorkflow.name, type: status, message });
|
|
|
|
|
|
+ console.log(engine);
|
|
|
|
+ resolve({
|
|
|
|
+ id,
|
|
|
|
+ message,
|
|
|
|
+ type: status,
|
|
|
|
+ name: currentWorkflow.name,
|
|
|
|
+ });
|
|
});
|
|
});
|
|
});
|
|
});
|
|
}
|
|
}
|