44 lines
2.4 KiB
XML
44 lines
2.4 KiB
XML
<?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" id="Definitions_96f6665" targetNamespace="http://bpmn.io/schema/bpmn" exporter="Camunda Modeler" exporterVersion="3.0.0-dev">
|
|
<bpmn:process id="Process_Local_Date_Time" name="Local Date and Time" isExecutable="true">
|
|
<bpmn:startEvent id="StartEvent_1">
|
|
<bpmn:outgoing>Flow_1ipjjs0</bpmn:outgoing>
|
|
</bpmn:startEvent>
|
|
<bpmn:sequenceFlow id="Flow_1ipjjs0" sourceRef="StartEvent_1" targetRef="Activity_0h7gas9" />
|
|
<bpmn:scriptTask id="Activity_0h7gas9" name="Get Local Date and Time" scriptFormat="python">
|
|
<bpmn:incoming>Flow_1ipjjs0</bpmn:incoming>
|
|
<bpmn:outgoing>Flow_0agt8ei</bpmn:outgoing>
|
|
<bpmn:script>
|
|
local_date_time_str = str(datetime.utcnow())
|
|
local_date_time = get_localtime(timestamp=local_date_time_str)
|
|
local_date_str = local_date_time.strftime('%Y-%m-%d')
|
|
local_time_str = local_date_time.strftime('%I:%M %p')</bpmn:script>
|
|
</bpmn:scriptTask>
|
|
<bpmn:endEvent id="Event_00z6om2">
|
|
<bpmn:incoming>Flow_0agt8ei</bpmn:incoming>
|
|
</bpmn:endEvent>
|
|
<bpmn:sequenceFlow id="Flow_0agt8ei" sourceRef="Activity_0h7gas9" targetRef="Event_00z6om2" />
|
|
</bpmn:process>
|
|
<bpmndi:BPMNDiagram id="BPMNDiagram_1">
|
|
<bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="Process_Local_Date_Time">
|
|
<bpmndi:BPMNShape id="_BPMNShape_StartEvent_2" bpmnElement="StartEvent_1">
|
|
<dc:Bounds x="179" y="159" width="36" height="36" />
|
|
</bpmndi:BPMNShape>
|
|
<bpmndi:BPMNShape id="Activity_1lh36fe_di" bpmnElement="Activity_0h7gas9">
|
|
<dc:Bounds x="270" y="137" width="100" height="80" />
|
|
</bpmndi:BPMNShape>
|
|
<bpmndi:BPMNShape id="Event_00z6om2_di" bpmnElement="Event_00z6om2">
|
|
<dc:Bounds x="432" y="159" width="36" height="36" />
|
|
</bpmndi:BPMNShape>
|
|
<bpmndi:BPMNEdge id="Flow_1ipjjs0_di" bpmnElement="Flow_1ipjjs0">
|
|
<di:waypoint x="215" y="177" />
|
|
<di:waypoint x="270" y="177" />
|
|
</bpmndi:BPMNEdge>
|
|
<bpmndi:BPMNEdge id="Flow_0agt8ei_di" bpmnElement="Flow_0agt8ei">
|
|
<di:waypoint x="370" y="177" />
|
|
<di:waypoint x="432" y="177" />
|
|
</bpmndi:BPMNEdge>
|
|
</bpmndi:BPMNPlane>
|
|
</bpmndi:BPMNDiagram>
|
|
</bpmn:definitions>
|