User: dinithijonline@gmail.com added process model file playground/dinithi/test-script-task/TestScriptTask.bpmn

This commit is contained in:
sartography-automated-committer 2023-09-12 04:23:21 +00:00
parent df7a594531
commit 6494017798
2 changed files with 85 additions and 2 deletions

View File

@ -0,0 +1,83 @@
<?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_y4rdhwt" isExecutable="true">
<bpmn:startEvent id="StartEvent_1">
<bpmn:outgoing>Flow_192ivnf</bpmn:outgoing>
</bpmn:startEvent>
<bpmn:sequenceFlow id="Flow_192ivnf" sourceRef="StartEvent_1" targetRef="Activity_0g5pmj7" />
<bpmn:userTask id="Activity_0g5pmj7" name="Get Numbers">
<bpmn:extensionElements>
<spiffworkflow:properties>
<spiffworkflow:property name="formJsonSchemaFilename" value="NumberForm-schema.json" />
<spiffworkflow:property name="formUiSchemaFilename" value="NumberForm-uischema.json" />
</spiffworkflow:properties>
</bpmn:extensionElements>
<bpmn:incoming>Flow_192ivnf</bpmn:incoming>
<bpmn:outgoing>Flow_01frqfe</bpmn:outgoing>
</bpmn:userTask>
<bpmn:sequenceFlow id="Flow_01frqfe" sourceRef="Activity_0g5pmj7" targetRef="Activity_1fxetxn" />
<bpmn:scriptTask id="Activity_1fxetxn" name="Calculation">
<bpmn:incoming>Flow_01frqfe</bpmn:incoming>
<bpmn:outgoing>Flow_0zls7of</bpmn:outgoing>
<bpmn:script>time.sleep(3)
add = 0
multipy =0
add= firstnumber+secondnumber
multipy=firstnumber*secondnumber</bpmn:script>
</bpmn:scriptTask>
<bpmn:sequenceFlow id="Flow_0zls7of" sourceRef="Activity_1fxetxn" targetRef="Activity_11hff1b" />
<bpmn:manualTask id="Activity_11hff1b" name="Display Results">
<bpmn:extensionElements>
<spiffworkflow:instructionsForEndUser>** Results**
**{{firstnumber}} + {{secondnumber}} = {{add}}**
**{{firstnumber}} + {{secondnumber}} = {{multiply}}**</spiffworkflow:instructionsForEndUser>
</bpmn:extensionElements>
<bpmn:incoming>Flow_0zls7of</bpmn:incoming>
<bpmn:outgoing>Flow_1sk85yc</bpmn:outgoing>
</bpmn:manualTask>
<bpmn:endEvent id="Event_1hhza3x">
<bpmn:incoming>Flow_1sk85yc</bpmn:incoming>
</bpmn:endEvent>
<bpmn:sequenceFlow id="Flow_1sk85yc" sourceRef="Activity_11hff1b" targetRef="Event_1hhza3x" />
</bpmn:process>
<bpmndi:BPMNDiagram id="BPMNDiagram_1">
<bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="Process_y4rdhwt">
<bpmndi:BPMNShape id="_BPMNShape_StartEvent_2" bpmnElement="StartEvent_1">
<dc:Bounds x="-468" y="82" width="36" height="36" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_1rjwhgn_di" bpmnElement="Activity_0g5pmj7">
<dc:Bounds x="-380" y="60" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_13c96wj_di" bpmnElement="Activity_1fxetxn">
<dc:Bounds x="-220" y="60" width="100" height="80" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_0mk3xu4_di" bpmnElement="Activity_11hff1b">
<dc:Bounds x="-60" y="60" width="100" height="80" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Event_1hhza3x_di" bpmnElement="Event_1hhza3x">
<dc:Bounds x="102" y="82" width="36" height="36" />
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge id="Flow_192ivnf_di" bpmnElement="Flow_192ivnf">
<di:waypoint x="-432" y="100" />
<di:waypoint x="-380" y="100" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_01frqfe_di" bpmnElement="Flow_01frqfe">
<di:waypoint x="-280" y="100" />
<di:waypoint x="-220" y="100" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0zls7of_di" bpmnElement="Flow_0zls7of">
<di:waypoint x="-120" y="100" />
<di:waypoint x="-60" y="100" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_1sk85yc_di" bpmnElement="Flow_1sk85yc">
<di:waypoint x="40" y="100" />
<di:waypoint x="102" y="100" />
</bpmndi:BPMNEdge>
</bpmndi:BPMNPlane>
</bpmndi:BPMNDiagram>
</bpmn:definitions>

View File

@ -4,6 +4,6 @@
"exception_notification_addresses": [],
"fault_or_suspend_on_exception": "fault",
"metadata_extraction_paths": null,
"primary_file_name": null,
"primary_process_id": null
"primary_file_name": "TestScriptTask.bpmn",
"primary_process_id": "Process_y4rdhwt"
}