added new structure for messages in group w/ burnettk

This commit is contained in:
jasquat 2024-05-08 14:08:25 -04:00
parent a328a07f9e
commit d90f18762f
No known key found for this signature in database
4 changed files with 166 additions and 4 deletions

View File

@ -0,0 +1,64 @@
<?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:spiffworkflow="http://spiffworkflow.org/bpmn/schema/1.0/core" 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:process id="Process_me601ul" isExecutable="true">
<bpmn:startEvent id="StartEvent_1">
<bpmn:outgoing>Flow_07r1yms</bpmn:outgoing>
<bpmn:messageEventDefinition id="MessageEventDefinition_1oakig6" messageRef="initiate_task">
<bpmn:extensionElements>
<spiffworkflow:messageVariable>task_info</spiffworkflow:messageVariable>
</bpmn:extensionElements>
</bpmn:messageEventDefinition>
</bpmn:startEvent>
<bpmn:sequenceFlow id="Flow_07r1yms" sourceRef="StartEvent_1" targetRef="Activity_0vlgrq7" />
<bpmn:sequenceFlow id="Flow_1bdixlg" sourceRef="Activity_0vlgrq7" targetRef="Activity_1kj2w75" />
<bpmn:endEvent id="Event_0apb0h5">
<bpmn:incoming>Flow_1y9xmpe</bpmn:incoming>
</bpmn:endEvent>
<bpmn:sequenceFlow id="Flow_1y9xmpe" sourceRef="Activity_1kj2w75" targetRef="Event_0apb0h5" />
<bpmn:scriptTask id="Activity_0vlgrq7">
<bpmn:incoming>Flow_07r1yms</bpmn:incoming>
<bpmn:outgoing>Flow_1bdixlg</bpmn:outgoing>
<bpmn:script>return_payload = {
"the_time": task_info['the_time'],
"status": "successful"
}</bpmn:script>
</bpmn:scriptTask>
<bpmn:sendTask id="Activity_1kj2w75" messageRef="task_complete">
<bpmn:extensionElements>
<spiffworkflow:messagePayload>return_payload</spiffworkflow:messagePayload>
</bpmn:extensionElements>
<bpmn:incoming>Flow_1bdixlg</bpmn:incoming>
<bpmn:outgoing>Flow_1y9xmpe</bpmn:outgoing>
</bpmn:sendTask>
</bpmn:process>
<bpmn:message id="initiate_task" name="initiate_task" />
<bpmn:message id="task_complete" name="task_complete" />
<bpmndi:BPMNDiagram id="BPMNDiagram_1">
<bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="Process_me601ul">
<bpmndi:BPMNShape id="Event_17qcwa1_di" bpmnElement="StartEvent_1">
<dc:Bounds x="179" y="159" width="36" height="36" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Event_0apb0h5_di" bpmnElement="Event_0apb0h5">
<dc:Bounds x="592" y="159" width="36" height="36" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_1bceaxu_di" bpmnElement="Activity_0vlgrq7">
<dc:Bounds x="270" y="137" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_1nbkta1_di" bpmnElement="Activity_1kj2w75">
<dc:Bounds x="430" y="137" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge id="Flow_07r1yms_di" bpmnElement="Flow_07r1yms">
<di:waypoint x="215" y="177" />
<di:waypoint x="270" y="177" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_1bdixlg_di" bpmnElement="Flow_1bdixlg">
<di:waypoint x="370" y="177" />
<di:waypoint x="430" y="177" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_1y9xmpe_di" bpmnElement="Flow_1y9xmpe">
<di:waypoint x="530" y="177" />
<di:waypoint x="592" y="177" />
</bpmndi:BPMNEdge>
</bpmndi:BPMNPlane>
</bpmndi:BPMNDiagram>
</bpmn:definitions>

View File

@ -0,0 +1,76 @@
<?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:spiffworkflow="http://spiffworkflow.org/bpmn/schema/1.0/core" 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:process id="Process_new_message_model_7mns8sd" isExecutable="true">
<bpmn:startEvent id="StartEvent_1">
<bpmn:outgoing>Flow_17db3yp</bpmn:outgoing>
</bpmn:startEvent>
<bpmn:sequenceFlow id="Flow_17db3yp" sourceRef="StartEvent_1" targetRef="Activity_0qpzdpu" />
<bpmn:endEvent id="EndEvent_1">
<bpmn:incoming>Flow_0c4f4fe</bpmn:incoming>
</bpmn:endEvent>
<bpmn:sequenceFlow id="Flow_12pkbxb" sourceRef="Activity_0qpzdpu" targetRef="Activity_1djrf3w" />
<bpmn:scriptTask id="Activity_0qpzdpu" name="Example manual task">
<bpmn:extensionElements>
<spiffworkflow:instructionsForEndUser />
</bpmn:extensionElements>
<bpmn:incoming>Flow_17db3yp</bpmn:incoming>
<bpmn:outgoing>Flow_12pkbxb</bpmn:outgoing>
<bpmn:script>the_new_payload = {
"the_time": time.time()
}</bpmn:script>
</bpmn:scriptTask>
<bpmn:sequenceFlow id="Flow_0fx7h2j" sourceRef="Activity_1djrf3w" targetRef="Event_1n558qc" />
<bpmn:sequenceFlow id="Flow_0c4f4fe" sourceRef="Event_1n558qc" targetRef="EndEvent_1" />
<bpmn:sendTask id="Activity_1djrf3w" messageRef="initiate_task">
<bpmn:extensionElements />
<bpmn:incoming>Flow_12pkbxb</bpmn:incoming>
<bpmn:outgoing>Flow_0fx7h2j</bpmn:outgoing>
</bpmn:sendTask>
<bpmn:intermediateCatchEvent id="Event_1n558qc" spiffworkflow:isMatchingCorrelation="false">
<bpmn:incoming>Flow_0fx7h2j</bpmn:incoming>
<bpmn:outgoing>Flow_0c4f4fe</bpmn:outgoing>
<bpmn:messageEventDefinition id="MessageEventDefinition_1rivsrn" messageRef="task_complete">
<bpmn:extensionElements>
<spiffworkflow:messageVariable>complete_payload</spiffworkflow:messageVariable>
</bpmn:extensionElements>
</bpmn:messageEventDefinition>
</bpmn:intermediateCatchEvent>
</bpmn:process>
<bpmn:message id="initiate_task" name="initiate_task" />
<bpmn:message id="task_complete" name="task_complete" />
<bpmndi:BPMNDiagram id="BPMNDiagram_1">
<bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="Process_new_message_model_7mns8sd">
<bpmndi:BPMNShape id="_BPMNShape_StartEvent_2" bpmnElement="StartEvent_1">
<dc:Bounds x="179" y="159" width="36" height="36" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Event_14za570_di" bpmnElement="EndEvent_1">
<dc:Bounds x="652" y="159" width="36" height="36" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_0xjdejq_di" bpmnElement="Activity_0qpzdpu">
<dc:Bounds x="270" y="137" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_0kbgr3z_di" bpmnElement="Activity_1djrf3w">
<dc:Bounds x="400" y="137" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Event_11ysd4q_di" bpmnElement="Event_1n558qc">
<dc:Bounds x="562" y="159" width="36" height="36" />
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge id="Flow_17db3yp_di" bpmnElement="Flow_17db3yp">
<di:waypoint x="215" y="177" />
<di:waypoint x="270" y="177" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_12pkbxb_di" bpmnElement="Flow_12pkbxb">
<di:waypoint x="370" y="177" />
<di:waypoint x="400" y="177" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0fx7h2j_di" bpmnElement="Flow_0fx7h2j">
<di:waypoint x="500" y="177" />
<di:waypoint x="562" y="177" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0c4f4fe_di" bpmnElement="Flow_0c4f4fe">
<di:waypoint x="598" y="177" />
<di:waypoint x="652" y="177" />
</bpmndi:BPMNEdge>
</bpmndi:BPMNPlane>
</bpmndi:BPMNDiagram>
</bpmn:definitions>

View File

@ -0,0 +1,9 @@
{
"description": "",
"display_name": "new message model",
"exception_notification_addresses": [],
"fault_or_suspend_on_exception": "fault",
"metadata_extraction_paths": null,
"primary_file_name": "new-message-model.bpmn",
"primary_process_id": "Process_new_message_model_7mns8sd"
}

View File

@ -1,9 +1,22 @@
{
"admin": false,
"data_store_specifications": {},
"description": "Shared Resources",
"display_name": "Shared Resources",
"display_order": 3,
"parent_groups": null,
"process_groups": []
"messages": {
"initiate_task": {
"correlation_properties": {
"the_time": {
"retrieval_expressions": ["the_time"]
}
}
}
},
"task_complete": {
"correlation_properties": {
"the_time": {
"retrieval_expressions": ["the_time"]
}
}
}
}