some updates to work with newer bpmn-js-spiffworkflow w/ burnettk

This commit is contained in:
jasquat 2022-07-13 12:44:10 -04:00
parent 7249fa69e1
commit d2fd455ce5
5 changed files with 111 additions and 61 deletions

View File

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<bpmn:definitions xmlns:bpmn="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:dc="http://www.omg.org/spec/DD/20100524/DC" xmlns:di="http://www.omg.org/spec/DD/20100524/DI" xmlns:camunda="http://camunda.org/schema/1.0/bpmn" xmlns:spiffworkflow="https://github.com/sartography/SpiffWorkflow" id="Definitions_1v1rp1q" targetNamespace="http://bpmn.io/schema/bpmn" exporter="Camunda Modeler" exporterVersion="3.7.3"> <bpmn:definitions xmlns:bpmn="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:dc="http://www.omg.org/spec/DD/20100524/DC" xmlns:di="http://www.omg.org/spec/DD/20100524/DI" xmlns:camunda="http://camunda.org/schema/1.0/bpmn" xmlns:spiffworkflow="http://spiffworkflow.org/bpmn/schema/1.0/core" id="Definitions_1v1rp1q" targetNamespace="http://bpmn.io/schema/bpmn" exporter="Camunda Modeler" exporterVersion="3.7.3">
<bpmn:process id="test_form" name="Test Form" isExecutable="true"> <bpmn:process id="test_form" name="Test Form" isExecutable="true">
<bpmn:startEvent id="StartEvent_1"> <bpmn:startEvent id="StartEvent_1">
<bpmn:outgoing>SequenceFlow_0lvudp8</bpmn:outgoing> <bpmn:outgoing>SequenceFlow_0lvudp8</bpmn:outgoing>
@ -11,13 +11,11 @@
<bpmn:userTask id="get_user_generated_number" name="get_user_generated_number" camunda:formKey="ConfirmEmail"> <bpmn:userTask id="get_user_generated_number" name="get_user_generated_number" camunda:formKey="ConfirmEmail">
<bpmn:incoming>Flow_0kk2hzj</bpmn:incoming> <bpmn:incoming>Flow_0kk2hzj</bpmn:incoming>
<bpmn:outgoing>Flow_1cck1pb</bpmn:outgoing> <bpmn:outgoing>Flow_1cck1pb</bpmn:outgoing>
<bpmn:rendering> <bpmn:extensionElements>
<bpmn:extensionElements> <spiffworkflow:properties>
<spiffworkflow:properties> <spiffworkflow:property name="formJsonSchemaFilename" value="give_me_a_number_form.json" />
<spiffworkflow:property name="formKey" value="give_me_a_number_form.json" /> </spiffworkflow:properties>
</spiffworkflow:properties> </bpmn:extensionElements>
</bpmn:extensionElements>
</bpmn:rendering>
</bpmn:userTask> </bpmn:userTask>
<bpmn:scriptTask id="multiply" name="multiply" scriptFormat="python"> <bpmn:scriptTask id="multiply" name="multiply" scriptFormat="python">
<bpmn:incoming>Flow_1cck1pb</bpmn:incoming> <bpmn:incoming>Flow_1cck1pb</bpmn:incoming>

View File

@ -1,19 +1,15 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<bpmn:definitions xmlns:spiffworkflow="https://github.com/sartography/SpiffWorkflow" xmlns:bpmn="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:dc="http://www.omg.org/spec/DD/20100524/DC" xmlns:di="http://www.omg.org/spec/DD/20100524/DI" id="Definitions_96f6665" targetNamespace="http://bpmn.io/schema/bpmn" exporter="Camunda Modeler" exporterVersion="3.0.0-dev"> <bpmn:definitions xmlns:bpmn="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:dc="http://www.omg.org/spec/DD/20100524/DC" xmlns:di="http://www.omg.org/spec/DD/20100524/DI" xmlns:spiffworkflow="http://spiffworkflow.org/bpmn/schema/1.0/core" id="Definitions_96f6665" targetNamespace="http://bpmn.io/schema/bpmn" exporter="Camunda Modeler" exporterVersion="3.0.0-dev">
<bpmn:process id="repeating_form" name="repeating form" isExecutable="true"> <bpmn:process id="repeating_form" name="repeating form" isExecutable="true">
<bpmn:startEvent id="StartEvent_1"> <bpmn:startEvent id="StartEvent_1">
<bpmn:outgoing>Flow_0lk9b96</bpmn:outgoing> <bpmn:outgoing>Flow_0lk9b96</bpmn:outgoing>
</bpmn:startEvent> </bpmn:startEvent>
<bpmn:userTask id="add_approvers" name="add approvers"> <bpmn:userTask id="add_approvers" name="add approvers1">
<bpmn:extensionElements>
<spiffworkflow:property name="formJsonSchemaFilename" value="add_approvers_form.json" />
</bpmn:extensionElements>
<bpmn:incoming>Flow_0lk9b96</bpmn:incoming> <bpmn:incoming>Flow_0lk9b96</bpmn:incoming>
<bpmn:outgoing>Flow_0agjrlz</bpmn:outgoing> <bpmn:outgoing>Flow_0agjrlz</bpmn:outgoing>
<bpmn:rendering>
<bpmn:extensionElements>
<spiffworkflow:properties>
<spiffworkflow:property name="formKey" value="add_approvers_form.json" />
</spiffworkflow:properties>
</bpmn:extensionElements>
</bpmn:rendering>
</bpmn:userTask> </bpmn:userTask>
<bpmn:sequenceFlow id="Flow_0lk9b96" sourceRef="StartEvent_1" targetRef="add_approvers" /> <bpmn:sequenceFlow id="Flow_0lk9b96" sourceRef="StartEvent_1" targetRef="add_approvers" />
<bpmn:endEvent id="Event_1dncb99"> <bpmn:endEvent id="Event_1dncb99">
@ -23,24 +19,24 @@
</bpmn:process> </bpmn:process>
<bpmndi:BPMNDiagram id="BPMNDiagram_1"> <bpmndi:BPMNDiagram id="BPMNDiagram_1">
<bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="repeating_form"> <bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="repeating_form">
<bpmndi:BPMNEdge id="Flow_0lk9b96_di" bpmnElement="Flow_0lk9b96">
<di:waypoint x="215" y="177" />
<di:waypoint x="330" y="177" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0agjrlz_di" bpmnElement="Flow_0agjrlz"> <bpmndi:BPMNEdge id="Flow_0agjrlz_di" bpmnElement="Flow_0agjrlz">
<di:waypoint x="430" y="177" /> <di:waypoint x="430" y="177" />
<di:waypoint x="532" y="177" /> <di:waypoint x="532" y="177" />
</bpmndi:BPMNEdge> </bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0lk9b96_di" bpmnElement="Flow_0lk9b96">
<di:waypoint x="215" y="177" />
<di:waypoint x="330" y="177" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNShape id="_BPMNShape_StartEvent_2" bpmnElement="StartEvent_1"> <bpmndi:BPMNShape id="_BPMNShape_StartEvent_2" bpmnElement="StartEvent_1">
<dc:Bounds x="179" y="159" width="36" height="36" /> <dc:Bounds x="179" y="159" width="36" height="36" />
</bpmndi:BPMNShape> </bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Event_1dncb99_di" bpmnElement="Event_1dncb99">
<dc:Bounds x="532" y="159" width="36" height="36" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_1ekp389_di" bpmnElement="add_approvers"> <bpmndi:BPMNShape id="Activity_1ekp389_di" bpmnElement="add_approvers">
<dc:Bounds x="330" y="137" width="100" height="80" /> <dc:Bounds x="330" y="137" width="100" height="80" />
<bpmndi:BPMNLabel /> <bpmndi:BPMNLabel />
</bpmndi:BPMNShape> </bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Event_1dncb99_di" bpmnElement="Event_1dncb99">
<dc:Bounds x="532" y="159" width="36" height="36" />
</bpmndi:BPMNShape>
</bpmndi:BPMNPlane> </bpmndi:BPMNPlane>
</bpmndi:BPMNDiagram> </bpmndi:BPMNDiagram>
</bpmn:definitions> </bpmn:definitions>

View File

@ -1,42 +1,59 @@
{ {
"admin": false,
"display_name": "category_number_one",
"id": "category_number_one", "id": "category_number_one",
"process_models": [ "process_models": [
{ {
"is_review": false,
"id": "process-model-with-form",
"process_group_id": "category_number_one",
"primary_file_name": "test_form.bpmn",
"libraries": [],
"primary_process_id": "test_form",
"files": [],
"fault_or_suspend_on_exception": "fault",
"exception_notification_addresses": [],
"library": false, "library": false,
"description": "A Process Model with a form", "libraries": [],
"display_name": "Process Model With Form", "display_name": "Process Model With Form",
"standalone": false, "standalone": false,
"id": "process-model-with-form",
"is_review": false,
"description": "A Process Model with a form",
"files": [],
"primary_process_id": "test_form",
"fault_or_suspend_on_exception": "fault",
"display_order": 0, "display_order": 0,
"is_master_spec": false "primary_file_name": "test_form.bpmn",
"exception_notification_addresses": [],
"is_master_spec": false,
"process_group_id": "category_number_one"
}, },
{ {
"is_review": false,
"id": "workflow_one",
"process_group_id": "category_number_one",
"primary_file_name": "sample.bpmn",
"libraries": [],
"primary_process_id": "sample",
"files": [],
"fault_or_suspend_on_exception": "fault",
"exception_notification_addresses": [],
"library": false, "library": false,
"description": "Workflow One, is a workflow.", "libraries": [],
"display_name": "Workflow One", "display_name": "Workflow One",
"standalone": false, "standalone": false,
"display_order": 0, "id": "workflow_one",
"is_master_spec": false "is_review": false,
"description": "Workflow One, is a workflow.",
"files": [],
"primary_process_id": "sample",
"fault_or_suspend_on_exception": "fault",
"display_order": 1,
"primary_file_name": "sample.bpmn",
"exception_notification_addresses": [],
"is_master_spec": false,
"process_group_id": "category_number_one"
},
{
"library": false,
"libraries": [],
"display_name": "Process Model With Repeating Form",
"standalone": false,
"id": "process-model-with-repeating-form",
"is_review": false,
"description": "Process Model With Repeating Form",
"files": [],
"primary_process_id": "repeating_form",
"fault_or_suspend_on_exception": "fault",
"display_order": 2,
"primary_file_name": "assign_approvers.bpmn",
"exception_notification_addresses": [],
"is_master_spec": false,
"process_group_id": "category_number_one"
} }
], ],
"admin": false,
"display_name": "category_number_one",
"display_order": 0 "display_order": 0
} }

View File

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<bpmn:definitions xmlns:bpmn="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:dc="http://www.omg.org/spec/DD/20100524/DC" xmlns:camunda="http://camunda.org/schema/1.0/bpmn" xmlns:di="http://www.omg.org/spec/DD/20100524/DI" xmlns:modeler="http://camunda.org/schema/modeler/1.0" id="Definitions_1ny7jp4" targetNamespace="http://bpmn.io/schema/bpmn" exporter="Camunda Modeler" exporterVersion="5.0.0" modeler:executionPlatform="Camunda Platform" modeler:executionPlatformVersion="7.17.0"> <bpmn:definitions xmlns:bpmn="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:dc="http://www.omg.org/spec/DD/20100524/DC" xmlns:di="http://www.omg.org/spec/DD/20100524/DI" xmlns:spiffworkflow="http://spiffworkflow.org/bpmn/schema/1.0/core" xmlns:camunda="http://camunda.org/schema/1.0/bpmn" xmlns:modeler="http://camunda.org/schema/modeler/1.0" id="Definitions_1ny7jp4" targetNamespace="http://bpmn.io/schema/bpmn" exporter="Camunda Modeler" exporterVersion="5.0.0" modeler:executionPlatform="Camunda Platform" modeler:executionPlatformVersion="7.17.0">
<bpmn:process id="sample" isExecutable="true"> <bpmn:process id="sample" isExecutable="true">
<bpmn:startEvent id="StartEvent_1"> <bpmn:startEvent id="StartEvent_1">
<bpmn:outgoing>Flow_10jwwqy</bpmn:outgoing> <bpmn:outgoing>Flow_10jwwqy</bpmn:outgoing>
@ -18,34 +18,37 @@ person = "Kevin"</bpmn:script>
</bpmn:scriptTask> </bpmn:scriptTask>
<bpmn:sequenceFlow id="Flow_1hd6o66" sourceRef="Activity_0a21ntf" targetRef="Event_1qb1u6a" /> <bpmn:sequenceFlow id="Flow_1hd6o66" sourceRef="Activity_0a21ntf" targetRef="Event_1qb1u6a" />
<bpmn:businessRuleTask id="Activity_0a21ntf" name="is wonderful?" camunda:decisionRef="wonderful"> <bpmn:businessRuleTask id="Activity_0a21ntf" name="is wonderful?" camunda:decisionRef="wonderful">
<bpmn:extensionElements>
<spiffworkflow:calledDecision decisionId="wonderful" />
</bpmn:extensionElements>
<bpmn:incoming>Flow_0htxke7</bpmn:incoming> <bpmn:incoming>Flow_0htxke7</bpmn:incoming>
<bpmn:outgoing>Flow_1hd6o66</bpmn:outgoing> <bpmn:outgoing>Flow_1hd6o66</bpmn:outgoing>
</bpmn:businessRuleTask> </bpmn:businessRuleTask>
</bpmn:process> </bpmn:process>
<bpmndi:BPMNDiagram id="BPMNDiagram_1"> <bpmndi:BPMNDiagram id="BPMNDiagram_1">
<bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="sample"> <bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="sample">
<bpmndi:BPMNEdge id="Flow_10jwwqy_di" bpmnElement="Flow_10jwwqy"> <bpmndi:BPMNEdge id="Flow_1hd6o66_di" bpmnElement="Flow_1hd6o66">
<di:waypoint x="188" y="120" /> <di:waypoint x="510" y="120" />
<di:waypoint x="240" y="120" /> <di:waypoint x="582" y="120" />
</bpmndi:BPMNEdge> </bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0htxke7_di" bpmnElement="Flow_0htxke7"> <bpmndi:BPMNEdge id="Flow_0htxke7_di" bpmnElement="Flow_0htxke7">
<di:waypoint x="340" y="120" /> <di:waypoint x="340" y="120" />
<di:waypoint x="410" y="120" /> <di:waypoint x="410" y="120" />
</bpmndi:BPMNEdge> </bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_1hd6o66_di" bpmnElement="Flow_1hd6o66"> <bpmndi:BPMNEdge id="Flow_10jwwqy_di" bpmnElement="Flow_10jwwqy">
<di:waypoint x="510" y="120" /> <di:waypoint x="188" y="120" />
<di:waypoint x="582" y="120" /> <di:waypoint x="240" y="120" />
</bpmndi:BPMNEdge> </bpmndi:BPMNEdge>
<bpmndi:BPMNShape id="_BPMNShape_StartEvent_2" bpmnElement="StartEvent_1"> <bpmndi:BPMNShape id="_BPMNShape_StartEvent_2" bpmnElement="StartEvent_1">
<dc:Bounds x="152" y="102" width="36" height="36" /> <dc:Bounds x="152" y="102" width="36" height="36" />
</bpmndi:BPMNShape> </bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Event_1qb1u6a_di" bpmnElement="Event_1qb1u6a">
<dc:Bounds x="582" y="102" width="36" height="36" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_17ohe7r_di" bpmnElement="Activity_0pxf6g1"> <bpmndi:BPMNShape id="Activity_17ohe7r_di" bpmnElement="Activity_0pxf6g1">
<dc:Bounds x="240" y="80" width="100" height="80" /> <dc:Bounds x="240" y="80" width="100" height="80" />
<bpmndi:BPMNLabel /> <bpmndi:BPMNLabel />
</bpmndi:BPMNShape> </bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Event_1qb1u6a_di" bpmnElement="Event_1qb1u6a">
<dc:Bounds x="582" y="102" width="36" height="36" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_06nka7s_di" bpmnElement="Activity_0a21ntf"> <bpmndi:BPMNShape id="Activity_06nka7s_di" bpmnElement="Activity_0a21ntf">
<dc:Bounds x="410" y="80" width="100" height="80" /> <dc:Bounds x="410" y="80" width="100" height="80" />
<bpmndi:BPMNLabel /> <bpmndi:BPMNLabel />

View File

@ -1,6 +1,42 @@
{ {
"id": "category_number_two",
"admin": false, "admin": false,
"display_name": "category_number_two", "display_name": "category_number_two",
"display_order": 10000 "id": "category_number_two",
"process_models": [
{
"library": false,
"libraries": [],
"display_name": "Workflow Three",
"standalone": false,
"id": "workflow_three",
"is_review": false,
"description": "Workflow Three, is a workflow.",
"files": [],
"primary_process_id": "empty_workflow",
"fault_or_suspend_on_exception": "fault",
"display_order": 3,
"primary_file_name": "empty_workflow.bpmn",
"exception_notification_addresses": [],
"is_master_spec": false,
"process_group_id": "category_number_two"
},
{
"library": false,
"libraries": [],
"display_name": "Workflow Two",
"standalone": false,
"id": "workflow_two",
"is_review": false,
"description": "Workflow Two, is a workflow.",
"files": [],
"primary_process_id": "empty_workflow",
"fault_or_suspend_on_exception": "fault",
"display_order": 3,
"primary_file_name": "empty_workflow.bpmn",
"exception_notification_addresses": [],
"is_master_spec": false,
"process_group_id": "category_number_two"
}
],
"display_order": 1
} }