office-dynamixs-ai/workflow/demo/trusted-decissions.bpmn
2025-07-28 23:22:28 +02:00

298 lines
17 KiB
XML

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<bpmn2:definitions xmlns:bpmn2="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:BPMN2="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:imixs="http://www.imixs.org/bpmn2" xmlns:open-bpmn="http://open-bpmn.org/XMLSchema" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" exporter="org.openbpmn" exporterVersion="1.0.0" targetNamespace="http://open-bpmn.org">
<bpmn2:collaboration id="collaboration_1" name="Default Collaboration">
<bpmn2:participant id="participant_x0L42g" name="Default Process" processRef="process_1"/>
<bpmn2:participant id="participant_tRnOVw" name="Quotation" processRef="process_sMc7Dg">
<bpmn2:documentation id="documentation_vx4Wdw"/>
</bpmn2:participant>
</bpmn2:collaboration>
<bpmn2:extensionElements>
<open-bpmn:auto-align>true</open-bpmn:auto-align>
<imixs:item name="txtworkflowmodelversion" type="xs:string">
<imixs:value><![CDATA[default-en-1.0]]></imixs:value>
</imixs:item>
<imixs:item name="txtplugins" type="xs:string">
<imixs:value><![CDATA[org.imixs.workflow.engine.plugins.RulePlugin]]></imixs:value>
<imixs:value><![CDATA[org.imixs.workflow.engine.plugins.SplitAndJoinPlugin]]></imixs:value>
<imixs:value><![CDATA[org.imixs.workflow.engine.plugins.OwnerPlugin]]></imixs:value>
<imixs:value><![CDATA[org.imixs.workflow.engine.plugins.ApproverPlugin]]></imixs:value>
<imixs:value><![CDATA[org.imixs.workflow.engine.plugins.HistoryPlugin]]></imixs:value>
<imixs:value><![CDATA[org.imixs.workflow.engine.plugins.ApplicationPlugin]]></imixs:value>
<imixs:value><![CDATA[org.imixs.workflow.engine.plugins.IntervalPlugin]]></imixs:value>
<imixs:value><![CDATA[org.imixs.workflow.engine.plugins.MailPlugin]]></imixs:value>
<imixs:value><![CDATA[org.imixs.workflow.engine.plugins.ResultPlugin]]></imixs:value>
</imixs:item>
<imixs:item name="txtfieldmapping" type="xs:string">
<imixs:value><![CDATA[Creator|$creator]]></imixs:value>
<imixs:value><![CDATA[Owner|$owner]]></imixs:value>
<imixs:value><![CDATA[Editor|$editor]]></imixs:value>
</imixs:item>
</bpmn2:extensionElements>
<bpmn2:process definitionalCollaborationRef="collaboration_1" id="process_1" name="Default Process" processType="Public">
<bpmn2:documentation id="documentation_yIE0cQ"/>
</bpmn2:process>
<bpmn2:process definitionalCollaborationRef="collaboration_1" id="process_sMc7Dg" isExecutable="true" name="Quotation" processType="Private">
<bpmn2:startEvent id="event_B7i9Iw" name="Start">
<bpmn2:documentation id="documentation_FnoiYQ"/>
<bpmn2:outgoing>sequenceFlow_G5Kd1Q</bpmn2:outgoing>
</bpmn2:startEvent>
<bpmn2:task id="task_tXh3Mg" imixs:processid="100" name="Submit Data Document">
<bpmn2:documentation id="documentation_grs3zw"/>
<bpmn2:incoming>sequenceFlow_G5Kd1Q</bpmn2:incoming>
<bpmn2:outgoing>sequenceFlow_t18xVA</bpmn2:outgoing>
</bpmn2:task>
<bpmn2:sequenceFlow id="sequenceFlow_G5Kd1Q" sourceRef="event_B7i9Iw" targetRef="task_tXh3Mg">
<bpmn2:documentation id="documentation_DezAuA"/>
</bpmn2:sequenceFlow>
<bpmn2:task id="task_drhWQg" imixs:processid="200" name="&#128196; Send Directly ">
<bpmn2:extensionElements/>
<bpmn2:documentation id="documentation_smS8pw"/>
<bpmn2:incoming>sequenceFlow_CZSH1g</bpmn2:incoming>
<bpmn2:outgoing>sequenceFlow_XjZMoA</bpmn2:outgoing>
</bpmn2:task>
<bpmn2:intermediateCatchEvent id="event_urvfmQ" imixs:activityid="10" name="&#128196; Send Quotation">
<bpmn2:documentation id="documentation_FwKHzw"/>
<bpmn2:messageEventDefinition id="messageEventDefinition_NEsURQ" messageRef="message_1"/>
<bpmn2:incoming>sequenceFlow_duF1Hg</bpmn2:incoming>
<bpmn2:outgoing>sequenceFlow_S4jwCQ</bpmn2:outgoing>
</bpmn2:intermediateCatchEvent>
<bpmn2:sequenceFlow id="sequenceFlow_duF1Hg" sourceRef="gateway_0pxlXg" targetRef="event_urvfmQ">
<bpmn2:documentation id="documentation_0QKeNA"/>
</bpmn2:sequenceFlow>
<bpmn2:endEvent id="event_lKuUKA" name="End">
<bpmn2:documentation id="documentation_nPmhng"/>
<bpmn2:incoming>sequenceFlow_S4jwCQ</bpmn2:incoming>
</bpmn2:endEvent>
<bpmn2:sequenceFlow id="sequenceFlow_t18xVA" sourceRef="task_tXh3Mg" targetRef="event_niedQQ">
<bpmn2:documentation id="documentation_sIOMsA"/>
</bpmn2:sequenceFlow>
<bpmn2:intermediateCatchEvent id="event_niedQQ" imixs:activityid="10" name="✅ Shipping &amp; Logistics">
<bpmn2:documentation id="documentation_MBhkPQ"/>
<bpmn2:signalEventDefinition id="signalEventDefinition_INWMRA" signalRef="signal_1"/>
<bpmn2:incoming>sequenceFlow_t18xVA</bpmn2:incoming>
<bpmn2:outgoing>sequenceFlow_1juEYg</bpmn2:outgoing>
</bpmn2:intermediateCatchEvent>
<bpmn2:dataObject id="dataObject_6cOkKQ" imixs:datatype="prompt-data" name="AI Agent">
<bpmn2:documentation id="documentation_AXhPdQ"><![CDATA[<?xml version="1.0" encoding="UTF-8"?>
<PromptDefinition>
<prompt_options>{"n_predict": 4096, "temperature": 0}</prompt_options>
<prompt><![CDATA[[INST] Du bist Sachbearbeiter in einem Unternehmen. Deine Aufgabe ist es, eingehende Vertragsdokumente zu prüfen. [/INST]
<FILECONTEXT>^.+\.([pP][dD][fF])$</FILECONTEXT>
</s>[INST]
Erstelle eine kurze Zusammenfassung der wichtigsten Elemente dieses Vertrags.
- Vertragsgeber
- Vertragsnehmer
- Gegenstand
- Laufzeit
[/INST]
]]]]><![CDATA[>
</prompt>
</PromptDefinition> ]]></bpmn2:documentation>
</bpmn2:dataObject>
<bpmn2:textAnnotation id="textAnnotation_0at23Q" textFormat="">
<bpmn2:text id="text_wUjgfQ"><![CDATA[☑️ Check Process Flow
- {Export in Non EU country}
- {Contains electronic devices}
- {Review legal regulations}
]]></bpmn2:text>
<bpmn2:documentation id="documentation_IG9UoA"/>
</bpmn2:textAnnotation>
<bpmn2:association id="association_6Hfsww" sourceRef="textAnnotation_0at23Q" targetRef="dataObject_6cOkKQ">
<bpmn2:documentation id="documentation_BvpU3g"/>
</bpmn2:association>
<bpmn2:association id="association_dpwf6A" sourceRef="dataObject_6cOkKQ" targetRef="event_niedQQ">
<bpmn2:documentation id="documentation_8CvVvA"/>
</bpmn2:association>
<bpmn2:sequenceFlow id="sequenceFlow_S4jwCQ" sourceRef="event_urvfmQ" targetRef="event_lKuUKA">
<bpmn2:documentation id="documentation_BM9PSA"/>
</bpmn2:sequenceFlow>
<bpmn2:exclusiveGateway default="sequenceFlow_CZSH1g" gatewayDirection="Diverging" id="gateway_x0C90A" name="">
<bpmn2:documentation id="documentation_uWx06w"/>
<bpmn2:incoming>sequenceFlow_1juEYg</bpmn2:incoming>
<bpmn2:outgoing>sequenceFlow_CZSH1g</bpmn2:outgoing>
<bpmn2:outgoing>sequenceFlow_gfW00Q</bpmn2:outgoing>
<bpmn2:outgoing>sequenceFlow_DiAQ5w</bpmn2:outgoing>
</bpmn2:exclusiveGateway>
<bpmn2:sequenceFlow id="sequenceFlow_1juEYg" sourceRef="event_niedQQ" targetRef="gateway_x0C90A">
<bpmn2:documentation id="documentation_YRNwEQ"/>
</bpmn2:sequenceFlow>
<bpmn2:task id="task_L133Xw" imixs:processid="200" name="&#128104;&#127998;Management Approval">
<bpmn2:extensionElements/>
<bpmn2:documentation id="documentation_ramFEg"/>
<bpmn2:incoming>sequenceFlow_gfW00Q</bpmn2:incoming>
<bpmn2:outgoing>sequenceFlow_GAe7Gg</bpmn2:outgoing>
</bpmn2:task>
<bpmn2:sequenceFlow id="sequenceFlow_CZSH1g" sourceRef="gateway_x0C90A" targetRef="task_drhWQg">
<bpmn2:documentation id="documentation_0r0IqA"/>
</bpmn2:sequenceFlow>
<bpmn2:sequenceFlow id="sequenceFlow_gfW00Q" sourceRef="gateway_x0C90A" targetRef="task_L133Xw">
<bpmn2:documentation id="documentation_JL0fbw"/>
<bpmn2:conditionExpression id="formalExpression_iWBGtg" xsi:type="bpmn2:tFormalExpression"><![CDATA[1==1]]></bpmn2:conditionExpression>
</bpmn2:sequenceFlow>
<bpmn2:task id="task_Djd00A" imixs:processid="200" name="&#128113;&#127996;‍♂️ Customs Processing">
<bpmn2:extensionElements/>
<bpmn2:documentation id="documentation_gPxcUA"/>
<bpmn2:incoming>sequenceFlow_DiAQ5w</bpmn2:incoming>
<bpmn2:outgoing>sequenceFlow_QqJL2w</bpmn2:outgoing>
</bpmn2:task>
<bpmn2:exclusiveGateway gatewayDirection="Diverging" id="gateway_0pxlXg" name="">
<bpmn2:documentation id="documentation_AqMKgA"/>
<bpmn2:outgoing>sequenceFlow_gfW00Q</bpmn2:outgoing>
<bpmn2:outgoing>sequenceFlow_duF1Hg</bpmn2:outgoing>
<bpmn2:incoming>sequenceFlow_GAe7Gg</bpmn2:incoming>
<bpmn2:incoming>sequenceFlow_XjZMoA</bpmn2:incoming>
<bpmn2:incoming>sequenceFlow_QqJL2w</bpmn2:incoming>
</bpmn2:exclusiveGateway>
<bpmn2:sequenceFlow id="sequenceFlow_GAe7Gg" sourceRef="task_L133Xw" targetRef="gateway_0pxlXg">
<bpmn2:documentation id="documentation_tneb3w"/>
</bpmn2:sequenceFlow>
<bpmn2:sequenceFlow id="sequenceFlow_XjZMoA" sourceRef="task_drhWQg" targetRef="gateway_0pxlXg">
<bpmn2:documentation id="documentation_3VJmaA"/>
</bpmn2:sequenceFlow>
<bpmn2:sequenceFlow id="sequenceFlow_DiAQ5w" sourceRef="gateway_x0C90A" targetRef="task_Djd00A">
<bpmn2:documentation id="documentation_LpTW8A"/>
<bpmn2:conditionExpression id="formalExpression_RMC8uw" xsi:type="bpmn2:tFormalExpression"><![CDATA[adf]]></bpmn2:conditionExpression>
</bpmn2:sequenceFlow>
<bpmn2:sequenceFlow id="sequenceFlow_QqJL2w" sourceRef="task_Djd00A" targetRef="gateway_0pxlXg">
<bpmn2:documentation id="documentation_PMXDdw"/>
</bpmn2:sequenceFlow>
</bpmn2:process>
<bpmn2:message id="message_1" name="Message 1">
<bpmn2:documentation id="documentation_KTfSFQ"/>
</bpmn2:message>
<bpmn2:signal id="signal_1" name="Signal 1"/>
<bpmndi:BPMNDiagram id="BPMNDiagram_1" name="OpenBPMN Diagram">
<bpmndi:BPMNPlane bpmnElement="collaboration_1" id="BPMNPlane_1">
<bpmndi:BPMNShape bpmnElement="participant_tRnOVw" id="BPMNShape_j8YiYQ">
<dc:Bounds height="760.0" width="2500.0" x="90.0" y="130.0"/>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape bpmnElement="event_B7i9Iw" id="BPMNShape_hXLmag">
<dc:Bounds height="36.0" width="36.0" x="187.0" y="457.0"/>
<bpmndi:BPMNLabel id="BPMNLabel_IfL9fg">
<dc:Bounds height="20.0" width="100.0" x="155.0" y="496.0"/>
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape bpmnElement="task_tXh3Mg" id="BPMNShape_eyKNaw">
<dc:Bounds height="50.0" width="110.0" x="270.0" y="450.0"/>
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge bpmnElement="sequenceFlow_G5Kd1Q" id="BPMNEdge_Z24kGg" sourceElement="BPMNShape_hXLmag" targetElement="BPMNShape_eyKNaw">
<di:waypoint x="223.0" y="475.0"/>
<di:waypoint x="270.0" y="475.0"/>
</bpmndi:BPMNEdge>
<bpmndi:BPMNShape bpmnElement="task_drhWQg" id="BPMNShape_ugDfgg">
<dc:Bounds height="50.0" width="110.0" x="650.0" y="450.0"/>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape bpmnElement="event_urvfmQ" id="BPMNShape_5ms9iA">
<dc:Bounds height="36.0" width="36.0" x="927.0" y="457.0"/>
<bpmndi:BPMNLabel id="BPMNLabel_SCNsvQ">
<dc:Bounds height="20.0" width="100.0" x="895.0" y="496.0"/>
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape bpmnElement="message_1" id="BPMNShape_6VlRkw">
<dc:Bounds height="20.0" width="30.0" x="130.0" y="30.0"/>
<bpmndi:BPMNLabel id="BPMNLabel_FxvxBA">
<dc:Bounds height="20.0" width="100.0" x="95.0" y="55.0"/>
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge bpmnElement="sequenceFlow_duF1Hg" id="BPMNEdge_1oOBLQ" sourceElement="BPMNShape_cXXfkg" targetElement="BPMNShape_5ms9iA">
<di:waypoint x="880.0" y="475.0"/>
<di:waypoint x="927.0" y="475.0"/>
</bpmndi:BPMNEdge>
<bpmndi:BPMNShape bpmnElement="event_lKuUKA" id="BPMNShape_A70Bjg">
<dc:Bounds height="36.0" width="36.0" x="1127.0" y="457.0"/>
<bpmndi:BPMNLabel id="BPMNLabel_dnMX0Q">
<dc:Bounds height="20.0" width="100.0" x="1158.0" y="463.0"/>
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge bpmnElement="sequenceFlow_t18xVA" id="BPMNEdge_u5Vplw" sourceElement="BPMNShape_eyKNaw" targetElement="BPMNShape_TjS4HQ">
<di:waypoint x="380.0" y="475.0"/>
<di:waypoint x="447.0" y="475.0"/>
</bpmndi:BPMNEdge>
<bpmndi:BPMNShape bpmnElement="event_niedQQ" id="BPMNShape_TjS4HQ">
<dc:Bounds height="36.0" width="36.0" x="447.0" y="457.0"/>
<bpmndi:BPMNLabel id="BPMNLabel_KXscdQ">
<dc:Bounds height="20.0" width="100.0" x="415.0" y="496.0"/>
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape bpmnElement="dataObject_6cOkKQ" id="BPMNShape_OX2wsg">
<dc:Bounds height="50.0" width="35.0" x="450.0" y="380.0"/>
<bpmndi:BPMNLabel id="BPMNLabel_HAEE0w">
<dc:Bounds height="20.0" width="100.0" x="417.5" y="435.0"/>
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape bpmnElement="textAnnotation_0at23Q" id="BPMNShape_iHgbbQ">
<dc:Bounds height="79.0" width="255.0" x="200.0" y="280.0"/>
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge bpmnElement="association_6Hfsww" id="BPMNEdge_szAS0Q" sourceElement="BPMNShape_iHgbbQ" targetElement="BPMNShape_OX2wsg">
<di:waypoint x="455.0" y="316.0"/>
<di:waypoint x="468.0" y="316.0"/>
<di:waypoint x="468.0" y="380.0"/>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge bpmnElement="association_dpwf6A" id="BPMNEdge_iilkRw" sourceElement="BPMNShape_OX2wsg" targetElement="BPMNShape_TjS4HQ">
<di:waypoint x="468.0" y="430.0"/>
<di:waypoint x="468.0" y="444.0"/>
<di:waypoint x="465.0" y="444.0"/>
<di:waypoint x="465.0" y="457.0"/>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge bpmnElement="sequenceFlow_S4jwCQ" id="BPMNEdge_TD3y7w" sourceElement="BPMNShape_5ms9iA" targetElement="BPMNShape_A70Bjg">
<di:waypoint x="963.0" y="475.0"/>
<di:waypoint x="1127.0" y="475.0"/>
</bpmndi:BPMNEdge>
<bpmndi:BPMNShape bpmnElement="gateway_x0C90A" id="BPMNShape_9fBhCg">
<dc:Bounds height="50.0" width="50.0" x="540.0" y="450.0"/>
<bpmndi:BPMNLabel id="BPMNLabel_w1NtnA">
<dc:Bounds height="20.0" width="100.0" x="515.0" y="503.0"/>
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge bpmnElement="sequenceFlow_1juEYg" id="BPMNEdge_wTOjMA" sourceElement="BPMNShape_TjS4HQ" targetElement="BPMNShape_9fBhCg">
<di:waypoint x="483.0" y="475.0"/>
<di:waypoint x="540.0" y="475.0"/>
</bpmndi:BPMNEdge>
<bpmndi:BPMNShape bpmnElement="task_L133Xw" id="BPMNShape_YZRbHw">
<dc:Bounds height="50.0" width="110.0" x="650.0" y="330.0"/>
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge bpmnElement="sequenceFlow_CZSH1g" id="BPMNEdge_A8evcQ" sourceElement="BPMNShape_9fBhCg" targetElement="BPMNShape_ugDfgg">
<di:waypoint x="590.0" y="475.0"/>
<di:waypoint x="650.0" y="475.0"/>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge bpmnElement="sequenceFlow_gfW00Q" id="BPMNEdge_UQGetQ" sourceElement="BPMNShape_9fBhCg" targetElement="BPMNShape_YZRbHw">
<di:waypoint x="564.0" y="451.0"/>
<di:waypoint x="564.0" y="355.0"/>
<di:waypoint x="650.0" y="355.0"/>
</bpmndi:BPMNEdge>
<bpmndi:BPMNShape bpmnElement="task_Djd00A" id="BPMNShape_mve07A">
<dc:Bounds height="50.0" width="110.0" x="650.0" y="570.0"/>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape bpmnElement="gateway_0pxlXg" id="BPMNShape_cXXfkg">
<dc:Bounds height="50.0" width="50.0" x="830.0" y="450.0"/>
<bpmndi:BPMNLabel id="BPMNLabel_NDn7Kw">
<dc:Bounds height="20.0" width="100.0" x="805.0" y="503.0"/>
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge bpmnElement="sequenceFlow_GAe7Gg" id="BPMNEdge_nO1aqw" sourceElement="BPMNShape_YZRbHw" targetElement="BPMNShape_cXXfkg">
<di:waypoint x="760.0" y="355.0"/>
<di:waypoint x="855.0" y="355.0"/>
<di:waypoint x="855.0" y="450.0"/>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge bpmnElement="sequenceFlow_XjZMoA" id="BPMNEdge_YsvSKA" sourceElement="BPMNShape_ugDfgg" targetElement="BPMNShape_cXXfkg">
<di:waypoint x="760.0" y="475.0"/>
<di:waypoint x="830.0" y="475.0"/>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge bpmnElement="sequenceFlow_DiAQ5w" id="BPMNEdge_zoUFFg" sourceElement="BPMNShape_9fBhCg" targetElement="BPMNShape_mve07A">
<di:waypoint x="565.0" y="500.0"/>
<di:waypoint x="565.0" y="590.0"/>
<di:waypoint x="650.0" y="590.0"/>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge bpmnElement="sequenceFlow_QqJL2w" id="BPMNEdge_3jEvsA" sourceElement="BPMNShape_mve07A" targetElement="BPMNShape_cXXfkg">
<di:waypoint x="760.0" y="590.0"/>
<di:waypoint x="853.0" y="590.0"/>
<di:waypoint x="853.0" y="498.0"/>
</bpmndi:BPMNEdge>
</bpmndi:BPMNPlane>
</bpmndi:BPMNDiagram>
</bpmn2:definitions>