mirror of
https://github.com/sartography/spiffworkflow-frontend.git
synced 2025-02-22 11:18:19 +00:00
fixed up the process instance show page a little bit
This commit is contained in:
parent
8d6ebf1e96
commit
bef839da71
3
.gitignore
vendored
3
.gitignore
vendored
@ -24,3 +24,6 @@ yarn-error.log*
|
||||
|
||||
cypress/videos
|
||||
cypress/screenshots
|
||||
|
||||
# i keep accidentally committing these
|
||||
/test*.json
|
||||
|
@ -32,12 +32,15 @@ export const convertDateToSeconds = (date: any, onChangeFunction: any) => {
|
||||
return dateInSeconds;
|
||||
}
|
||||
|
||||
return undefined;
|
||||
return null;
|
||||
};
|
||||
|
||||
export const convertSecondsToFormattedDate = (seconds: number) => {
|
||||
const startDate = new Date(seconds * 1000);
|
||||
return format(startDate, DATE_FORMAT);
|
||||
if (seconds) {
|
||||
const startDate = new Date(seconds * 1000);
|
||||
return format(startDate, DATE_FORMAT);
|
||||
}
|
||||
return null;
|
||||
};
|
||||
|
||||
export const objectIsEmpty = (obj: object) => {
|
||||
|
@ -267,18 +267,10 @@ export default function ProcessInstanceList() {
|
||||
|
||||
const buildTable = () => {
|
||||
const rows = processInstances.map((row) => {
|
||||
let formattedStartDate = '-';
|
||||
if ((row as any).start_in_seconds) {
|
||||
formattedStartDate = convertSecondsToFormattedDate(
|
||||
(row as any).start_in_seconds
|
||||
);
|
||||
}
|
||||
let formattedEndDate = '-';
|
||||
if ((row as any).end_in_seconds) {
|
||||
formattedEndDate = convertSecondsToFormattedDate(
|
||||
(row as any).end_in_seconds
|
||||
);
|
||||
}
|
||||
const formattedStartDate =
|
||||
convertSecondsToFormattedDate((row as any).start_in_seconds) || '-';
|
||||
const formattedEndDate =
|
||||
convertSecondsToFormattedDate((row as any).end_in_seconds) || '-';
|
||||
|
||||
return (
|
||||
<tr key={(row as any).id}>
|
||||
|
@ -1,9 +1,10 @@
|
||||
import { useEffect, useState } from 'react';
|
||||
import { useParams, useNavigate } from 'react-router-dom';
|
||||
import { Button } from 'react-bootstrap';
|
||||
import { Button, Stack } from 'react-bootstrap';
|
||||
import ProcessBreadcrumb from '../components/ProcessBreadcrumb';
|
||||
import HttpService from '../services/HttpService';
|
||||
import ReactDiagramEditor from '../components/ReactDiagramEditor';
|
||||
import { convertSecondsToFormattedDate } from '../helpers';
|
||||
|
||||
export default function ProcessInstanceShow() {
|
||||
const navigate = useNavigate();
|
||||
@ -32,9 +33,7 @@ export default function ProcessInstanceShow() {
|
||||
});
|
||||
};
|
||||
|
||||
const getActiveTaskBpmnId = (
|
||||
processInstanceToUse: any
|
||||
): [string, any] | null => {
|
||||
const getActiveTask = (processInstanceToUse: any): any | null => {
|
||||
if (
|
||||
processInstanceToUse.bpmn_json &&
|
||||
processInstanceToUse.spiffworkflow_active_task_id
|
||||
@ -44,7 +43,7 @@ export default function ProcessInstanceShow() {
|
||||
];
|
||||
|
||||
if (activeTask) {
|
||||
return [activeTask.task_spec, activeTask.data];
|
||||
return activeTask;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
@ -74,15 +73,54 @@ export default function ProcessInstanceShow() {
|
||||
return null;
|
||||
};
|
||||
|
||||
const getInfoTag = (processInstanceToUse: any, activeTask: any) => {
|
||||
let activeTaskBpmnId;
|
||||
if (activeTask) {
|
||||
activeTaskBpmnId = activeTask.task_spec;
|
||||
}
|
||||
|
||||
const currentEndDate = convertSecondsToFormattedDate(
|
||||
processInstanceToUse.end_in_seconds
|
||||
);
|
||||
let currentEndDateTag;
|
||||
if (currentEndDate) {
|
||||
currentEndDateTag = (
|
||||
<li>
|
||||
Completed:{' '}
|
||||
{convertSecondsToFormattedDate(processInstanceToUse.end_in_seconds) ||
|
||||
'N/A'}
|
||||
</li>
|
||||
);
|
||||
}
|
||||
|
||||
let currentTaskTag;
|
||||
if (activeTaskBpmnId) {
|
||||
currentTaskTag = <li>Current Task: {activeTaskBpmnId}</li>;
|
||||
}
|
||||
|
||||
return (
|
||||
<ul>
|
||||
<li>
|
||||
Started:{' '}
|
||||
{convertSecondsToFormattedDate(processInstanceToUse.start_in_seconds)}
|
||||
</li>
|
||||
{currentEndDateTag}
|
||||
{currentTaskTag}
|
||||
<li>Status: {processInstanceToUse.status}</li>
|
||||
</ul>
|
||||
);
|
||||
};
|
||||
|
||||
if (processInstance) {
|
||||
const processInstanceToUse = processInstance as any;
|
||||
const result = getActiveTaskBpmnId(processInstanceToUse);
|
||||
|
||||
const activeTask = getActiveTask(processInstanceToUse);
|
||||
let activeTaskBpmnId;
|
||||
let activeTaskData;
|
||||
if (result) {
|
||||
[activeTaskBpmnId, activeTaskData] = result;
|
||||
if (activeTask) {
|
||||
activeTaskBpmnId = activeTask.task_spec;
|
||||
activeTaskData = activeTask.data;
|
||||
}
|
||||
|
||||
const completedTasksBpmnIds =
|
||||
getCompletedTasksBpmnIds(processInstanceToUse);
|
||||
|
||||
@ -96,10 +134,13 @@ export default function ProcessInstanceShow() {
|
||||
// @ts-expect-error TS(2322) FIXME: Type 'string' is not assignable to type 'boolean |... Remove this comment to see the full error message
|
||||
linkProcessModel="true"
|
||||
/>
|
||||
<h2>Process Instance Id: {processInstanceToUse.id}</h2>
|
||||
<Button onClick={deleteProcessInstance} variant="danger">
|
||||
Delete process instance
|
||||
</Button>
|
||||
<Stack direction="horizontal" gap={3}>
|
||||
<h2>Process Instance Id: {processInstanceToUse.id}</h2>
|
||||
<Button onClick={deleteProcessInstance} variant="danger">
|
||||
Delete process instance
|
||||
</Button>
|
||||
</Stack>
|
||||
{getInfoTag(processInstanceToUse, activeTask)}
|
||||
<h2>Data</h2>
|
||||
<div>
|
||||
<pre>{JSON.stringify(taskData, null, 2)}</pre>
|
||||
|
821
test2.json
821
test2.json
@ -1,821 +0,0 @@
|
||||
{
|
||||
"data": {
|
||||
"validate_only": false,
|
||||
"process_instance_id": 621
|
||||
},
|
||||
"last_task": "9b44c701-8d85-49ce-99c1-e43a4c108c68",
|
||||
"success": true,
|
||||
"tasks": {
|
||||
"6c014ced-e8a7-433c-bb8f-1d4782520ebf": {
|
||||
"id": "6c014ced-e8a7-433c-bb8f-1d4782520ebf",
|
||||
"parent": null,
|
||||
"children": [
|
||||
"f3703df4-ab14-47c1-a9bb-cdafb078a2ec"
|
||||
],
|
||||
"last_state_change": 1658417243.648234,
|
||||
"state": 32,
|
||||
"task_spec": "Root",
|
||||
"triggered": false,
|
||||
"workflow_name": "test_form",
|
||||
"internal_data": {},
|
||||
"data": {}
|
||||
},
|
||||
"f3703df4-ab14-47c1-a9bb-cdafb078a2ec": {
|
||||
"id": "f3703df4-ab14-47c1-a9bb-cdafb078a2ec",
|
||||
"parent": "6c014ced-e8a7-433c-bb8f-1d4782520ebf",
|
||||
"children": [
|
||||
"ebc0f965-68a9-4eef-a350-b1effb9aa7c4"
|
||||
],
|
||||
"last_state_change": 1658417243.6620293,
|
||||
"state": 32,
|
||||
"task_spec": "Start",
|
||||
"triggered": false,
|
||||
"workflow_name": "test_form",
|
||||
"internal_data": {},
|
||||
"data": {
|
||||
"current_user": {
|
||||
"username": "test_user1",
|
||||
"id": "1"
|
||||
}
|
||||
}
|
||||
},
|
||||
"ebc0f965-68a9-4eef-a350-b1effb9aa7c4": {
|
||||
"id": "ebc0f965-68a9-4eef-a350-b1effb9aa7c4",
|
||||
"parent": "f3703df4-ab14-47c1-a9bb-cdafb078a2ec",
|
||||
"children": [
|
||||
"9b44c701-8d85-49ce-99c1-e43a4c108c68"
|
||||
],
|
||||
"last_state_change": 1658417243.6625428,
|
||||
"state": 32,
|
||||
"task_spec": "StartEvent_1",
|
||||
"triggered": false,
|
||||
"workflow_name": "test_form",
|
||||
"internal_data": {
|
||||
"event_fired": true
|
||||
},
|
||||
"data": {
|
||||
"current_user": {
|
||||
"username": "test_user1",
|
||||
"id": "1"
|
||||
}
|
||||
}
|
||||
},
|
||||
"9b44c701-8d85-49ce-99c1-e43a4c108c68": {
|
||||
"id": "9b44c701-8d85-49ce-99c1-e43a4c108c68",
|
||||
"parent": "ebc0f965-68a9-4eef-a350-b1effb9aa7c4",
|
||||
"children": [
|
||||
"4a3939ce-2169-41fa-ac6e-111c67f0b6bf"
|
||||
],
|
||||
"last_state_change": 1658417243.6629763,
|
||||
"state": 32,
|
||||
"task_spec": "set_system_generated_number",
|
||||
"triggered": false,
|
||||
"workflow_name": "test_form",
|
||||
"internal_data": {},
|
||||
"data": {
|
||||
"current_user": {
|
||||
"username": "test_user1",
|
||||
"id": "1"
|
||||
},
|
||||
"system_generated_number": 4
|
||||
}
|
||||
},
|
||||
"4a3939ce-2169-41fa-ac6e-111c67f0b6bf": {
|
||||
"id": "4a3939ce-2169-41fa-ac6e-111c67f0b6bf",
|
||||
"parent": "9b44c701-8d85-49ce-99c1-e43a4c108c68",
|
||||
"children": [
|
||||
"2645e829-05b0-46ec-8631-fabcaee15df2"
|
||||
],
|
||||
"last_state_change": 1658417243.6632526,
|
||||
"state": 16,
|
||||
"task_spec": "form1",
|
||||
"triggered": false,
|
||||
"workflow_name": "test_form",
|
||||
"internal_data": {},
|
||||
"data": {
|
||||
"current_user": {
|
||||
"username": "test_user1",
|
||||
"id": "1"
|
||||
},
|
||||
"system_generated_number": 4
|
||||
}
|
||||
},
|
||||
"2645e829-05b0-46ec-8631-fabcaee15df2": {
|
||||
"id": "2645e829-05b0-46ec-8631-fabcaee15df2",
|
||||
"parent": "4a3939ce-2169-41fa-ac6e-111c67f0b6bf",
|
||||
"children": [
|
||||
"f457e55f-e7f7-4e85-9250-9ecadad079c7"
|
||||
],
|
||||
"last_state_change": 1658417243.6484957,
|
||||
"state": 4,
|
||||
"task_spec": "multiply1",
|
||||
"triggered": false,
|
||||
"workflow_name": "test_form",
|
||||
"internal_data": {},
|
||||
"data": {}
|
||||
},
|
||||
"f457e55f-e7f7-4e85-9250-9ecadad079c7": {
|
||||
"id": "f457e55f-e7f7-4e85-9250-9ecadad079c7",
|
||||
"parent": "2645e829-05b0-46ec-8631-fabcaee15df2",
|
||||
"children": [
|
||||
"065097a3-4880-498d-9a31-e6adc9802eb9"
|
||||
],
|
||||
"last_state_change": 1658417243.6485288,
|
||||
"state": 4,
|
||||
"task_spec": "form2",
|
||||
"triggered": false,
|
||||
"workflow_name": "test_form",
|
||||
"internal_data": {},
|
||||
"data": {}
|
||||
},
|
||||
"065097a3-4880-498d-9a31-e6adc9802eb9": {
|
||||
"id": "065097a3-4880-498d-9a31-e6adc9802eb9",
|
||||
"parent": "f457e55f-e7f7-4e85-9250-9ecadad079c7",
|
||||
"children": [
|
||||
"4501cf8d-02e3-43df-885f-1ef572aaa112"
|
||||
],
|
||||
"last_state_change": 1658417243.6485639,
|
||||
"state": 4,
|
||||
"task_spec": "multiply2",
|
||||
"triggered": false,
|
||||
"workflow_name": "test_form",
|
||||
"internal_data": {},
|
||||
"data": {}
|
||||
},
|
||||
"4501cf8d-02e3-43df-885f-1ef572aaa112": {
|
||||
"id": "4501cf8d-02e3-43df-885f-1ef572aaa112",
|
||||
"parent": "065097a3-4880-498d-9a31-e6adc9802eb9",
|
||||
"children": [
|
||||
"ea81a240-7c58-4804-8302-80120efbd41d"
|
||||
],
|
||||
"last_state_change": 1658417243.6485944,
|
||||
"state": 4,
|
||||
"task_spec": "form3",
|
||||
"triggered": false,
|
||||
"workflow_name": "test_form",
|
||||
"internal_data": {},
|
||||
"data": {}
|
||||
},
|
||||
"ea81a240-7c58-4804-8302-80120efbd41d": {
|
||||
"id": "ea81a240-7c58-4804-8302-80120efbd41d",
|
||||
"parent": "4501cf8d-02e3-43df-885f-1ef572aaa112",
|
||||
"children": [
|
||||
"508d45d6-ef91-470a-9d40-d4db294f037f"
|
||||
],
|
||||
"last_state_change": 1658417243.6486228,
|
||||
"state": 4,
|
||||
"task_spec": "multiply3",
|
||||
"triggered": false,
|
||||
"workflow_name": "test_form",
|
||||
"internal_data": {},
|
||||
"data": {}
|
||||
},
|
||||
"508d45d6-ef91-470a-9d40-d4db294f037f": {
|
||||
"id": "508d45d6-ef91-470a-9d40-d4db294f037f",
|
||||
"parent": "ea81a240-7c58-4804-8302-80120efbd41d",
|
||||
"children": [
|
||||
"e5e433ca-6a56-4d44-85cb-7d23df824fe1"
|
||||
],
|
||||
"last_state_change": 1658417243.6486592,
|
||||
"state": 4,
|
||||
"task_spec": "form4",
|
||||
"triggered": false,
|
||||
"workflow_name": "test_form",
|
||||
"internal_data": {},
|
||||
"data": {}
|
||||
},
|
||||
"e5e433ca-6a56-4d44-85cb-7d23df824fe1": {
|
||||
"id": "e5e433ca-6a56-4d44-85cb-7d23df824fe1",
|
||||
"parent": "508d45d6-ef91-470a-9d40-d4db294f037f",
|
||||
"children": [
|
||||
"440850b8-5ce6-4d3d-9845-c2687b59d128"
|
||||
],
|
||||
"last_state_change": 1658417243.648693,
|
||||
"state": 4,
|
||||
"task_spec": "multiply4",
|
||||
"triggered": false,
|
||||
"workflow_name": "test_form",
|
||||
"internal_data": {},
|
||||
"data": {}
|
||||
},
|
||||
"440850b8-5ce6-4d3d-9845-c2687b59d128": {
|
||||
"id": "440850b8-5ce6-4d3d-9845-c2687b59d128",
|
||||
"parent": "e5e433ca-6a56-4d44-85cb-7d23df824fe1",
|
||||
"children": [
|
||||
"d549b744-2f5a-4127-8159-b962cee7254c"
|
||||
],
|
||||
"last_state_change": 1658417243.64873,
|
||||
"state": 4,
|
||||
"task_spec": "EndEvent_0q4qzl9",
|
||||
"triggered": false,
|
||||
"workflow_name": "test_form",
|
||||
"internal_data": {},
|
||||
"data": {}
|
||||
},
|
||||
"d549b744-2f5a-4127-8159-b962cee7254c": {
|
||||
"id": "d549b744-2f5a-4127-8159-b962cee7254c",
|
||||
"parent": "440850b8-5ce6-4d3d-9845-c2687b59d128",
|
||||
"children": [
|
||||
"576893d2-15eb-4b14-9023-8c47f9468a18"
|
||||
],
|
||||
"last_state_change": 1658417243.648761,
|
||||
"state": 4,
|
||||
"task_spec": "test_form.EndJoin",
|
||||
"triggered": false,
|
||||
"workflow_name": "test_form",
|
||||
"internal_data": {},
|
||||
"data": {}
|
||||
},
|
||||
"576893d2-15eb-4b14-9023-8c47f9468a18": {
|
||||
"id": "576893d2-15eb-4b14-9023-8c47f9468a18",
|
||||
"parent": "d549b744-2f5a-4127-8159-b962cee7254c",
|
||||
"children": [],
|
||||
"last_state_change": 1658417243.648786,
|
||||
"state": 4,
|
||||
"task_spec": "End",
|
||||
"triggered": false,
|
||||
"workflow_name": "test_form",
|
||||
"internal_data": {},
|
||||
"data": {}
|
||||
}
|
||||
},
|
||||
"root": "6c014ced-e8a7-433c-bb8f-1d4782520ebf",
|
||||
"spec": {
|
||||
"name": "test_form",
|
||||
"description": "Test Form",
|
||||
"file": "test_form.bpmn",
|
||||
"task_specs": {
|
||||
"Start": {
|
||||
"id": "test_form_1",
|
||||
"name": "Start",
|
||||
"description": "",
|
||||
"manual": false,
|
||||
"internal": false,
|
||||
"lookahead": 2,
|
||||
"inputs": [],
|
||||
"outputs": [
|
||||
"StartEvent_1"
|
||||
],
|
||||
"typename": "StartTask"
|
||||
},
|
||||
"test_form.EndJoin": {
|
||||
"id": "test_form_2",
|
||||
"name": "test_form.EndJoin",
|
||||
"description": "",
|
||||
"manual": false,
|
||||
"internal": false,
|
||||
"lookahead": 2,
|
||||
"inputs": [
|
||||
"EndEvent_0q4qzl9"
|
||||
],
|
||||
"outputs": [
|
||||
"End"
|
||||
],
|
||||
"typename": "_EndJoin"
|
||||
},
|
||||
"End": {
|
||||
"id": "test_form_3",
|
||||
"name": "End",
|
||||
"description": "",
|
||||
"manual": false,
|
||||
"internal": false,
|
||||
"lookahead": 2,
|
||||
"inputs": [
|
||||
"test_form.EndJoin"
|
||||
],
|
||||
"outputs": [],
|
||||
"typename": "Simple"
|
||||
},
|
||||
"StartEvent_1": {
|
||||
"id": "test_form_4",
|
||||
"name": "StartEvent_1",
|
||||
"description": null,
|
||||
"manual": false,
|
||||
"internal": false,
|
||||
"lookahead": 2,
|
||||
"inputs": [
|
||||
"Start"
|
||||
],
|
||||
"outputs": [
|
||||
"set_system_generated_number"
|
||||
],
|
||||
"lane": null,
|
||||
"documentation": null,
|
||||
"loopTask": false,
|
||||
"position": {
|
||||
"x": 112,
|
||||
"y": 99
|
||||
},
|
||||
"outgoing_sequence_flows": {
|
||||
"set_system_generated_number": {
|
||||
"id": "SequenceFlow_0lvudp8",
|
||||
"name": null,
|
||||
"documentation": null,
|
||||
"target_task_spec": "set_system_generated_number",
|
||||
"typename": "SequenceFlow"
|
||||
}
|
||||
},
|
||||
"outgoing_sequence_flows_by_id": {
|
||||
"SequenceFlow_0lvudp8": {
|
||||
"id": "SequenceFlow_0lvudp8",
|
||||
"name": null,
|
||||
"documentation": null,
|
||||
"target_task_spec": "set_system_generated_number",
|
||||
"typename": "SequenceFlow"
|
||||
}
|
||||
},
|
||||
"data_input_associations": [],
|
||||
"data_output_associations": [],
|
||||
"event_definition": {
|
||||
"internal": false,
|
||||
"external": false,
|
||||
"typename": "NoneEventDefinition"
|
||||
},
|
||||
"typename": "StartEvent",
|
||||
"extensions": {}
|
||||
},
|
||||
"set_system_generated_number": {
|
||||
"id": "test_form_5",
|
||||
"name": "set_system_generated_number",
|
||||
"description": "set_system_generated_number",
|
||||
"manual": false,
|
||||
"internal": false,
|
||||
"lookahead": 2,
|
||||
"inputs": [
|
||||
"StartEvent_1"
|
||||
],
|
||||
"outputs": [
|
||||
"form1"
|
||||
],
|
||||
"lane": null,
|
||||
"documentation": null,
|
||||
"loopTask": false,
|
||||
"position": {
|
||||
"x": 190,
|
||||
"y": 77
|
||||
},
|
||||
"outgoing_sequence_flows": {
|
||||
"form1": {
|
||||
"id": "Flow_0kk2hzj",
|
||||
"name": null,
|
||||
"documentation": null,
|
||||
"target_task_spec": "form1",
|
||||
"typename": "SequenceFlow"
|
||||
}
|
||||
},
|
||||
"outgoing_sequence_flows_by_id": {
|
||||
"Flow_0kk2hzj": {
|
||||
"id": "Flow_0kk2hzj",
|
||||
"name": null,
|
||||
"documentation": null,
|
||||
"target_task_spec": "form1",
|
||||
"typename": "SequenceFlow"
|
||||
}
|
||||
},
|
||||
"data_input_associations": [],
|
||||
"data_output_associations": [],
|
||||
"script": "system_generated_number = 4",
|
||||
"typename": "ScriptTask",
|
||||
"extensions": {}
|
||||
},
|
||||
"form1": {
|
||||
"id": "test_form_6",
|
||||
"name": "form1",
|
||||
"description": "",
|
||||
"manual": false,
|
||||
"internal": false,
|
||||
"lookahead": 2,
|
||||
"inputs": [
|
||||
"set_system_generated_number"
|
||||
],
|
||||
"outputs": [
|
||||
"multiply1"
|
||||
],
|
||||
"lane": null,
|
||||
"documentation": null,
|
||||
"loopTask": false,
|
||||
"position": {
|
||||
"x": 230,
|
||||
"y": 210
|
||||
},
|
||||
"outgoing_sequence_flows": {
|
||||
"multiply1": {
|
||||
"id": "Flow_1cck1pb",
|
||||
"name": null,
|
||||
"documentation": null,
|
||||
"target_task_spec": "multiply1",
|
||||
"typename": "SequenceFlow"
|
||||
}
|
||||
},
|
||||
"outgoing_sequence_flows_by_id": {
|
||||
"Flow_1cck1pb": {
|
||||
"id": "Flow_1cck1pb",
|
||||
"name": null,
|
||||
"documentation": null,
|
||||
"target_task_spec": "multiply1",
|
||||
"typename": "SequenceFlow"
|
||||
}
|
||||
},
|
||||
"data_input_associations": [],
|
||||
"data_output_associations": [],
|
||||
"prescript": null,
|
||||
"postscript": null,
|
||||
"typename": "UserTask",
|
||||
"extensions": {
|
||||
"properties": {
|
||||
"formJsonSchemaFilename": "give_me_a_number_form.json"
|
||||
}
|
||||
}
|
||||
},
|
||||
"multiply1": {
|
||||
"id": "test_form_7",
|
||||
"name": "multiply1",
|
||||
"description": "multiply",
|
||||
"manual": false,
|
||||
"internal": false,
|
||||
"lookahead": 2,
|
||||
"inputs": [
|
||||
"form1"
|
||||
],
|
||||
"outputs": [
|
||||
"form2"
|
||||
],
|
||||
"lane": null,
|
||||
"documentation": null,
|
||||
"loopTask": false,
|
||||
"position": {
|
||||
"x": 330,
|
||||
"y": 77
|
||||
},
|
||||
"outgoing_sequence_flows": {
|
||||
"form2": {
|
||||
"id": "Flow_16gxvwr",
|
||||
"name": null,
|
||||
"documentation": null,
|
||||
"target_task_spec": "form2",
|
||||
"typename": "SequenceFlow"
|
||||
}
|
||||
},
|
||||
"outgoing_sequence_flows_by_id": {
|
||||
"Flow_16gxvwr": {
|
||||
"id": "Flow_16gxvwr",
|
||||
"name": null,
|
||||
"documentation": null,
|
||||
"target_task_spec": "form2",
|
||||
"typename": "SequenceFlow"
|
||||
}
|
||||
},
|
||||
"data_input_associations": [],
|
||||
"data_output_associations": [],
|
||||
"script": "product_one = system_generated_number * user_generated_number",
|
||||
"typename": "ScriptTask",
|
||||
"extensions": {}
|
||||
},
|
||||
"form2": {
|
||||
"id": "test_form_8",
|
||||
"name": "form2",
|
||||
"description": "",
|
||||
"manual": false,
|
||||
"internal": false,
|
||||
"lookahead": 2,
|
||||
"inputs": [
|
||||
"multiply1"
|
||||
],
|
||||
"outputs": [
|
||||
"multiply2"
|
||||
],
|
||||
"lane": null,
|
||||
"documentation": null,
|
||||
"loopTask": false,
|
||||
"position": {
|
||||
"x": 400,
|
||||
"y": 210
|
||||
},
|
||||
"outgoing_sequence_flows": {
|
||||
"multiply2": {
|
||||
"id": "Flow_0k1q81g",
|
||||
"name": null,
|
||||
"documentation": null,
|
||||
"target_task_spec": "multiply2",
|
||||
"typename": "SequenceFlow"
|
||||
}
|
||||
},
|
||||
"outgoing_sequence_flows_by_id": {
|
||||
"Flow_0k1q81g": {
|
||||
"id": "Flow_0k1q81g",
|
||||
"name": null,
|
||||
"documentation": null,
|
||||
"target_task_spec": "multiply2",
|
||||
"typename": "SequenceFlow"
|
||||
}
|
||||
},
|
||||
"data_input_associations": [],
|
||||
"data_output_associations": [],
|
||||
"prescript": null,
|
||||
"postscript": null,
|
||||
"typename": "UserTask",
|
||||
"extensions": {
|
||||
"properties": {
|
||||
"formJsonSchemaFilename": "give_me_another_number_form.json"
|
||||
}
|
||||
}
|
||||
},
|
||||
"multiply2": {
|
||||
"id": "test_form_9",
|
||||
"name": "multiply2",
|
||||
"description": "multiply",
|
||||
"manual": false,
|
||||
"internal": false,
|
||||
"lookahead": 2,
|
||||
"inputs": [
|
||||
"form2"
|
||||
],
|
||||
"outputs": [
|
||||
"form3"
|
||||
],
|
||||
"lane": null,
|
||||
"documentation": null,
|
||||
"loopTask": false,
|
||||
"position": {
|
||||
"x": 460,
|
||||
"y": 77
|
||||
},
|
||||
"outgoing_sequence_flows": {
|
||||
"form3": {
|
||||
"id": "Flow_1dhe346",
|
||||
"name": null,
|
||||
"documentation": null,
|
||||
"target_task_spec": "form3",
|
||||
"typename": "SequenceFlow"
|
||||
}
|
||||
},
|
||||
"outgoing_sequence_flows_by_id": {
|
||||
"Flow_1dhe346": {
|
||||
"id": "Flow_1dhe346",
|
||||
"name": null,
|
||||
"documentation": null,
|
||||
"target_task_spec": "form3",
|
||||
"typename": "SequenceFlow"
|
||||
}
|
||||
},
|
||||
"data_input_associations": [],
|
||||
"data_output_associations": [],
|
||||
"script": "product_two = product_one * second_user_generated_number",
|
||||
"typename": "ScriptTask",
|
||||
"extensions": {}
|
||||
},
|
||||
"form3": {
|
||||
"id": "test_form_10",
|
||||
"name": "form3",
|
||||
"description": "",
|
||||
"manual": false,
|
||||
"internal": false,
|
||||
"lookahead": 2,
|
||||
"inputs": [
|
||||
"multiply2"
|
||||
],
|
||||
"outputs": [
|
||||
"multiply3"
|
||||
],
|
||||
"lane": null,
|
||||
"documentation": null,
|
||||
"loopTask": false,
|
||||
"position": {
|
||||
"x": 550,
|
||||
"y": 210
|
||||
},
|
||||
"outgoing_sequence_flows": {
|
||||
"multiply3": {
|
||||
"id": "Flow_0h8gnje",
|
||||
"name": null,
|
||||
"documentation": null,
|
||||
"target_task_spec": "multiply3",
|
||||
"typename": "SequenceFlow"
|
||||
}
|
||||
},
|
||||
"outgoing_sequence_flows_by_id": {
|
||||
"Flow_0h8gnje": {
|
||||
"id": "Flow_0h8gnje",
|
||||
"name": null,
|
||||
"documentation": null,
|
||||
"target_task_spec": "multiply3",
|
||||
"typename": "SequenceFlow"
|
||||
}
|
||||
},
|
||||
"data_input_associations": [],
|
||||
"data_output_associations": [],
|
||||
"prescript": null,
|
||||
"postscript": null,
|
||||
"typename": "UserTask",
|
||||
"extensions": {
|
||||
"properties": {
|
||||
"formJsonSchemaFilename": "form3.json"
|
||||
}
|
||||
}
|
||||
},
|
||||
"multiply3": {
|
||||
"id": "test_form_11",
|
||||
"name": "multiply3",
|
||||
"description": "multiply",
|
||||
"manual": false,
|
||||
"internal": false,
|
||||
"lookahead": 2,
|
||||
"inputs": [
|
||||
"form3"
|
||||
],
|
||||
"outputs": [
|
||||
"form4"
|
||||
],
|
||||
"lane": null,
|
||||
"documentation": null,
|
||||
"loopTask": false,
|
||||
"position": {
|
||||
"x": 600,
|
||||
"y": 77
|
||||
},
|
||||
"outgoing_sequence_flows": {
|
||||
"form4": {
|
||||
"id": "Flow_0lq17rq",
|
||||
"name": null,
|
||||
"documentation": null,
|
||||
"target_task_spec": "form4",
|
||||
"typename": "SequenceFlow"
|
||||
}
|
||||
},
|
||||
"outgoing_sequence_flows_by_id": {
|
||||
"Flow_0lq17rq": {
|
||||
"id": "Flow_0lq17rq",
|
||||
"name": null,
|
||||
"documentation": null,
|
||||
"target_task_spec": "form4",
|
||||
"typename": "SequenceFlow"
|
||||
}
|
||||
},
|
||||
"data_input_associations": [],
|
||||
"data_output_associations": [],
|
||||
"script": "product_three = product_two * user_generated_number_3",
|
||||
"typename": "ScriptTask",
|
||||
"extensions": {}
|
||||
},
|
||||
"form4": {
|
||||
"id": "test_form_12",
|
||||
"name": "form4",
|
||||
"description": "",
|
||||
"manual": false,
|
||||
"internal": false,
|
||||
"lookahead": 2,
|
||||
"inputs": [
|
||||
"multiply3"
|
||||
],
|
||||
"outputs": [
|
||||
"multiply4"
|
||||
],
|
||||
"lane": null,
|
||||
"documentation": null,
|
||||
"loopTask": false,
|
||||
"position": {
|
||||
"x": 680,
|
||||
"y": 210
|
||||
},
|
||||
"outgoing_sequence_flows": {
|
||||
"multiply4": {
|
||||
"id": "Flow_0lxveac",
|
||||
"name": null,
|
||||
"documentation": null,
|
||||
"target_task_spec": "multiply4",
|
||||
"typename": "SequenceFlow"
|
||||
}
|
||||
},
|
||||
"outgoing_sequence_flows_by_id": {
|
||||
"Flow_0lxveac": {
|
||||
"id": "Flow_0lxveac",
|
||||
"name": null,
|
||||
"documentation": null,
|
||||
"target_task_spec": "multiply4",
|
||||
"typename": "SequenceFlow"
|
||||
}
|
||||
},
|
||||
"data_input_associations": [],
|
||||
"data_output_associations": [],
|
||||
"prescript": null,
|
||||
"postscript": null,
|
||||
"typename": "UserTask",
|
||||
"extensions": {
|
||||
"properties": {
|
||||
"formJsonSchemaFilename": "form4.json"
|
||||
}
|
||||
}
|
||||
},
|
||||
"multiply4": {
|
||||
"id": "test_form_13",
|
||||
"name": "multiply4",
|
||||
"description": "multiply",
|
||||
"manual": false,
|
||||
"internal": false,
|
||||
"lookahead": 2,
|
||||
"inputs": [
|
||||
"form4"
|
||||
],
|
||||
"outputs": [
|
||||
"EndEvent_0q4qzl9"
|
||||
],
|
||||
"lane": null,
|
||||
"documentation": null,
|
||||
"loopTask": false,
|
||||
"position": {
|
||||
"x": 740,
|
||||
"y": 77
|
||||
},
|
||||
"outgoing_sequence_flows": {
|
||||
"EndEvent_0q4qzl9": {
|
||||
"id": "Flow_17my2ps",
|
||||
"name": null,
|
||||
"documentation": null,
|
||||
"target_task_spec": "EndEvent_0q4qzl9",
|
||||
"typename": "SequenceFlow"
|
||||
}
|
||||
},
|
||||
"outgoing_sequence_flows_by_id": {
|
||||
"Flow_17my2ps": {
|
||||
"id": "Flow_17my2ps",
|
||||
"name": null,
|
||||
"documentation": null,
|
||||
"target_task_spec": "EndEvent_0q4qzl9",
|
||||
"typename": "SequenceFlow"
|
||||
}
|
||||
},
|
||||
"data_input_associations": [],
|
||||
"data_output_associations": [],
|
||||
"script": "product_four = product_three * user_generated_number_4",
|
||||
"typename": "ScriptTask",
|
||||
"extensions": {}
|
||||
},
|
||||
"EndEvent_0q4qzl9": {
|
||||
"id": "test_form_14",
|
||||
"name": "EndEvent_0q4qzl9",
|
||||
"description": null,
|
||||
"manual": false,
|
||||
"internal": false,
|
||||
"lookahead": 2,
|
||||
"inputs": [
|
||||
"multiply4"
|
||||
],
|
||||
"outputs": [
|
||||
"test_form.EndJoin"
|
||||
],
|
||||
"lane": null,
|
||||
"documentation": null,
|
||||
"loopTask": false,
|
||||
"position": {
|
||||
"x": 882,
|
||||
"y": 99
|
||||
},
|
||||
"outgoing_sequence_flows": {
|
||||
"test_form.EndJoin": {
|
||||
"id": "EndEvent_0q4qzl9.ToEndJoin",
|
||||
"name": null,
|
||||
"documentation": null,
|
||||
"target_task_spec": "test_form.EndJoin",
|
||||
"typename": "SequenceFlow"
|
||||
}
|
||||
},
|
||||
"outgoing_sequence_flows_by_id": {
|
||||
"EndEvent_0q4qzl9.ToEndJoin": {
|
||||
"id": "EndEvent_0q4qzl9.ToEndJoin",
|
||||
"name": null,
|
||||
"documentation": null,
|
||||
"target_task_spec": "test_form.EndJoin",
|
||||
"typename": "SequenceFlow"
|
||||
}
|
||||
},
|
||||
"data_input_associations": [],
|
||||
"data_output_associations": [],
|
||||
"event_definition": {
|
||||
"internal": false,
|
||||
"external": false,
|
||||
"typename": "NoneEventDefinition"
|
||||
},
|
||||
"typename": "EndEvent",
|
||||
"extensions": {}
|
||||
},
|
||||
"Root": {
|
||||
"id": "test_form_15",
|
||||
"name": "Root",
|
||||
"description": "",
|
||||
"manual": false,
|
||||
"internal": false,
|
||||
"lookahead": 2,
|
||||
"inputs": [],
|
||||
"outputs": [],
|
||||
"typename": "Simple"
|
||||
}
|
||||
},
|
||||
"data_inputs": [],
|
||||
"data_outputs": [],
|
||||
"data_objects": [],
|
||||
"typename": "BpmnProcessSpec"
|
||||
},
|
||||
"subprocess_specs": {},
|
||||
"subprocesses": {},
|
||||
"serializer_version": "1.0-CRC"
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user