added process model with start event and multiple forms w/ burnettk

This commit is contained in:
sartography-automated-committer 2024-03-13 17:31:16 -04:00
parent cfa6346282
commit 2c6b3a7738
No known key found for this signature in database
8 changed files with 170 additions and 0 deletions

View File

@ -0,0 +1,11 @@
{
"title": "Form for message start event",
"type": "object",
"required": ["firstName"],
"properties": {
"firstName": {
"type": "string",
"title": "First name"
}
}
}

View File

@ -0,0 +1,122 @@
<?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:collaboration id="Collaboration_1h79dxi">
<bpmn:participant id="Participant_04cn64m" processRef="Process_message_start_event_with_multiple_forms_bkmtffv" />
</bpmn:collaboration>
<bpmn:process id="Process_message_start_event_with_multiple_forms_bkmtffv" isExecutable="true">
<bpmn:laneSet id="LaneSet_0okk2le">
<bpmn:lane id="Lane_0n1tm41">
<bpmn:flowNodeRef>message_start_event_one</bpmn:flowNodeRef>
<bpmn:flowNodeRef>script_task_one</bpmn:flowNodeRef>
<bpmn:flowNodeRef>user_task_one</bpmn:flowNodeRef>
</bpmn:lane>
<bpmn:lane id="admin" name="admin">
<bpmn:flowNodeRef>Event_0c0wt46</bpmn:flowNodeRef>
<bpmn:flowNodeRef>admin_task</bpmn:flowNodeRef>
</bpmn:lane>
</bpmn:laneSet>
<bpmn:sequenceFlow id="Flow_17db3yp" sourceRef="message_start_event_one" targetRef="script_task_one" />
<bpmn:sequenceFlow id="Flow_12pkbxb" sourceRef="script_task_one" targetRef="user_task_one" />
<bpmn:startEvent id="message_start_event_one" name="Message Start Event One" messageRef="[object Object]">
<bpmn:extensionElements>
<spiffworkflow:properties>
<spiffworkflow:property name="formJsonSchemaFilename" value="entry-form-schema.json" />
<spiffworkflow:property name="formUiSchemaFilename" value="entry-form-uischema.json" />
</spiffworkflow:properties>
</bpmn:extensionElements>
<bpmn:outgoing>Flow_17db3yp</bpmn:outgoing>
<bpmn:messageEventDefinition id="MessageEventDefinition_13ctnqx" messageRef="Message_1rfi4qj" />
</bpmn:startEvent>
<bpmn:scriptTask id="script_task_one" name="Script Task One">
<bpmn:extensionElements>
<spiffworkflow:instructionsForEndUser>This is an example **Manual Task**. A **Manual Task** is designed to allow someone to complete a task outside of the system and then report back that it is complete. You can click the *Continue* button to proceed. When you are done running this process, you can edit the **Process Model** to include a:
* **Script Task** - write a short snippet of python code to update some data
* **User Task** - generate a form that collects information from a user
* **Service Task** - communicate with an external API to fetch or update some data.
You can also change the text you are reading here by updating the *Instructions* on this example manual task.</spiffworkflow:instructionsForEndUser>
</bpmn:extensionElements>
<bpmn:incoming>Flow_17db3yp</bpmn:incoming>
<bpmn:outgoing>Flow_12pkbxb</bpmn:outgoing>
<bpmn:script>a = 1</bpmn:script>
</bpmn:scriptTask>
<bpmn:userTask id="user_task_one" name="User Task One">
<bpmn:extensionElements>
<spiffworkflow:properties>
<spiffworkflow:property name="formJsonSchemaFilename" value="second-form-schema.json" />
<spiffworkflow:property name="formUiSchemaFilename" value="second-form-uischema.json" />
</spiffworkflow:properties>
<spiffworkflow:allowGuest>false</spiffworkflow:allowGuest>
<spiffworkflow:instructionsForEndUser />
<spiffworkflow:guestConfirmation />
</bpmn:extensionElements>
<bpmn:incoming>Flow_12pkbxb</bpmn:incoming>
<bpmn:outgoing>Flow_14h4dnh</bpmn:outgoing>
</bpmn:userTask>
<bpmn:endEvent id="Event_0c0wt46">
<bpmn:incoming>Flow_1aprws7</bpmn:incoming>
</bpmn:endEvent>
<bpmn:sequenceFlow id="Flow_1aprws7" sourceRef="admin_task" targetRef="Event_0c0wt46" />
<bpmn:sequenceFlow id="Flow_14h4dnh" sourceRef="user_task_one" targetRef="admin_task" />
<bpmn:manualTask id="admin_task" name="Admin task">
<bpmn:incoming>Flow_14h4dnh</bpmn:incoming>
<bpmn:outgoing>Flow_1aprws7</bpmn:outgoing>
</bpmn:manualTask>
</bpmn:process>
<bpmn:message id="Message_1rfi4qj" name="bounty_start_multiple_forms">
<bpmn:extensionElements>
<spiffworkflow:messageVariable>incoming_request</spiffworkflow:messageVariable>
</bpmn:extensionElements>
</bpmn:message>
<bpmndi:BPMNDiagram id="BPMNDiagram_1">
<bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="Collaboration_1h79dxi">
<bpmndi:BPMNShape id="Participant_04cn64m_di" bpmnElement="Participant_04cn64m" isHorizontal="true">
<dc:Bounds x="40" y="52" width="600" height="370" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Lane_0w9549p_di" bpmnElement="admin" isHorizontal="true">
<dc:Bounds x="70" y="302" width="570" height="120" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Lane_0n1tm41_di" bpmnElement="Lane_0n1tm41" isHorizontal="true">
<dc:Bounds x="70" y="52" width="570" height="250" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Event_0aasbbk_di" bpmnElement="message_start_event_one">
<dc:Bounds x="132" y="159" width="36" height="36" />
<bpmndi:BPMNLabel>
<dc:Bounds x="116" y="202" width="71" height="27" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_0mqmnb0_di" bpmnElement="script_task_one">
<dc:Bounds x="230" y="137" width="100" height="80" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_0ziqn0f_di" bpmnElement="user_task_one">
<dc:Bounds x="400" y="137" width="100" height="80" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Event_0c0wt46_di" bpmnElement="Event_0c0wt46">
<dc:Bounds x="542" y="342" width="36" height="36" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_0cfmowl_di" bpmnElement="admin_task">
<dc:Bounds x="400" y="320" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge id="Flow_17db3yp_di" bpmnElement="Flow_17db3yp">
<di:waypoint x="168" y="177" />
<di:waypoint x="230" y="177" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_12pkbxb_di" bpmnElement="Flow_12pkbxb">
<di:waypoint x="330" y="177" />
<di:waypoint x="400" y="177" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_1aprws7_di" bpmnElement="Flow_1aprws7">
<di:waypoint x="500" y="360" />
<di:waypoint x="542" y="360" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_14h4dnh_di" bpmnElement="Flow_14h4dnh">
<di:waypoint x="450" y="217" />
<di:waypoint x="450" y="320" />
</bpmndi:BPMNEdge>
</bpmndi:BPMNPlane>
</bpmndi:BPMNDiagram>
</bpmn:definitions>

View File

@ -0,0 +1,9 @@
{
"description": "",
"display_name": "message-start-event-with-multiple-forms",
"exception_notification_addresses": [],
"fault_or_suspend_on_exception": "fault",
"metadata_extraction_paths": null,
"primary_file_name": "message-start-event-with-multiple-forms.bpmn",
"primary_process_id": "Process_message_start_event_with_multiple_forms_bkmtffv"
}

View File

@ -0,0 +1,11 @@
{
"title": "Your results",
"description": "HELLO {{incoming_request['firstName']}}",
"type": "object",
"properties": {
"lastName": {
"type": "string",
"title": "Last name"
}
}
}

View File

@ -127,6 +127,20 @@
<text>"/extensions/aggregate-metadata"</text>
</outputEntry>
</rule>
<rule id="DecisionRule_0swu709">
<inputEntry id="UnaryTests_0i3obt6">
<text></text>
</inputEntry>
<outputEntry id="LiteralExpression_0ehef6e">
<text>"spiff_public"</text>
</outputEntry>
<outputEntry id="LiteralExpression_0almr65">
<text>["all"]</text>
</outputEntry>
<outputEntry id="LiteralExpression_0tglhoy">
<text>"/public/*"</text>
</outputEntry>
</rule>
</decisionTable>
</decision>
<dmndi:DMNDI>