office-dynamixs-ai/doc/modelling-categroize.bpmn
2026-01-02 15:18:56 +01: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:extensionElements>
<open-bpmn:auto-align>true</open-bpmn:auto-align>
</bpmn2:extensionElements>
</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="Document Import">
<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; Contract Processing">
<bpmn2:extensionElements/>
<bpmn2:documentation id="documentation_smS8pw"/>
<bpmn2:incoming>sequenceFlow_CZSH1g</bpmn2:incoming>
<bpmn2:outgoing>sequenceFlow_G06SFg</bpmn2:outgoing>
</bpmn2:task>
<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="✅ Categorize">
<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[☑️ Analyze the following document and classify it according to these dimensions:
- Type: [Invoice | Contract | Inquiry | ...]
- Customer: [Extract customer name]
- Language: [ISO 639-1 code]
- Priority: value
Respond in XML format.
]]></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: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="&#128196; Invoice Processing">
<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_1XAfeA" xsi:type="bpmn2:tFormalExpression"><![CDATA[Check Process Data:
Überprüfe ob der Auftrag in ein Nicht EU Land geht.
Falls es sich um elektronische Bauteile handelt mit einem Auftragswert von über 1000,- EUR
sollte ein Export-Prüfverfahren eingeleitet werden
Context:
- {Export in Non EU country}
- {Contains electronic devices}
- {Review legal regulations}]]></bpmn2:conditionExpression>
</bpmn2:sequenceFlow>
<bpmn2:task id="task_Djd00A" imixs:processid="200" name="&#128196; Inquiry Processing">
<bpmn2:extensionElements/>
<bpmn2:documentation id="documentation_gPxcUA"/>
<bpmn2:incoming>sequenceFlow_DiAQ5w</bpmn2:incoming>
<bpmn2:outgoing>sequenceFlow_rub38g</bpmn2:outgoing>
</bpmn2:task>
<bpmn2:sequenceFlow id="sequenceFlow_GAe7Gg" sourceRef="task_L133Xw" targetRef="event_5pszBQ">
<bpmn2:documentation id="documentation_tneb3w"/>
</bpmn2:sequenceFlow>
<bpmn2:sequenceFlow id="sequenceFlow_DiAQ5w" sourceRef="gateway_x0C90A" targetRef="task_Djd00A">
<bpmn2:documentation id="documentation_LpTW8A"/>
<bpmn2:conditionExpression id="formalExpression_Xhjr8w" xsi:type="bpmn2:tFormalExpression"><![CDATA[workitem.getItemValueDouble('budget')>1000;]]></bpmn2:conditionExpression>
</bpmn2:sequenceFlow>
<bpmn2:intermediateThrowEvent id="event_5pszBQ" name="♻ Start Workflow">
<bpmn2:documentation id="documentation_AaXe9w"/>
<bpmn2:linkEventDefinition id="linkEventDefinition_v0KICg"/>
<bpmn2:incoming>sequenceFlow_GAe7Gg</bpmn2:incoming>
</bpmn2:intermediateThrowEvent>
<bpmn2:intermediateThrowEvent id="event_JSkOeA" name="♻ Start Workflow">
<bpmn2:documentation id="documentation_uvMhtw"/>
<bpmn2:incoming>sequenceFlow_G06SFg</bpmn2:incoming>
<bpmn2:linkEventDefinition id="linkEventDefinition_7wM0WQ"/>
</bpmn2:intermediateThrowEvent>
<bpmn2:intermediateThrowEvent id="event_Beyk0g" name="♻ Start Workflow">
<bpmn2:documentation id="documentation_yqWWkw"/>
<bpmn2:incoming>sequenceFlow_rub38g</bpmn2:incoming>
<bpmn2:linkEventDefinition id="linkEventDefinition_L00Cnw"/>
</bpmn2:intermediateThrowEvent>
<bpmn2:sequenceFlow id="sequenceFlow_rub38g" sourceRef="task_Djd00A" targetRef="event_Beyk0g">
<bpmn2:documentation id="documentation_31t5QA"/>
</bpmn2:sequenceFlow>
<bpmn2:sequenceFlow id="sequenceFlow_G06SFg" sourceRef="task_drhWQg" targetRef="event_JSkOeA">
<bpmn2:documentation id="documentation_YDFeGQ"/>
</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:BPMNShape bpmnElement="participant_x0L42g" id="BPMNShape_D38FhA">
<dc:Bounds height="210.0" width="800.0" x="0.0" y="0.0"/>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape bpmnElement="event_5pszBQ" id="BPMNShape_eCqWQw">
<dc:Bounds height="36.0" width="36.0" x="927.0" y="337.0"/>
<bpmndi:BPMNLabel id="BPMNLabel_0AKR2g">
<dc:Bounds height="20.0" width="100.0" x="895.0" y="376.0"/>
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape bpmnElement="event_JSkOeA" id="BPMNShape_BsDkYQ">
<dc:Bounds height="36.0" width="36.0" x="927.0" y="457.0"/>
<bpmndi:BPMNLabel id="BPMNLabel_pYUJ0Q">
<dc:Bounds height="20.0" width="100.0" x="895.0" y="496.0"/>
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape bpmnElement="event_Beyk0g" id="BPMNShape_BZoF3Q">
<dc:Bounds height="36.0" width="36.0" x="927.0" y="577.0"/>
<bpmndi:BPMNLabel id="BPMNLabel_DXhFyA">
<dc:Bounds height="20.0" width="100.0" x="895.0" y="616.0"/>
</bpmndi:BPMNLabel>
</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="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_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="149.0" width="341.0" x="150.0" y="200.0"/>
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge bpmnElement="association_6Hfsww" id="BPMNEdge_szAS0Q" sourceElement="BPMNShape_iHgbbQ" targetElement="BPMNShape_OX2wsg">
<di:waypoint x="438.0" y="349.0"/>
<di:waypoint x="438.0" y="405.0"/>
<di:waypoint x="450.0" y="405.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: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="352.0"/>
<di:waypoint x="650.0" y="352.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:BPMNEdge bpmnElement="sequenceFlow_GAe7Gg" id="BPMNEdge_nO1aqw" sourceElement="BPMNShape_YZRbHw" targetElement="BPMNShape_eCqWQw">
<di:waypoint x="760.0" y="355.0"/>
<di:waypoint x="927.0" y="355.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_rub38g" id="BPMNEdge_SWfLrg" sourceElement="BPMNShape_mve07A" targetElement="BPMNShape_BZoF3Q">
<di:waypoint x="760.0" y="595.0"/>
<di:waypoint x="927.0" y="595.0"/>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge bpmnElement="sequenceFlow_G06SFg" id="BPMNEdge_08bmBw" sourceElement="BPMNShape_ugDfgg" targetElement="BPMNShape_BsDkYQ">
<di:waypoint x="760.0" y="475.0"/>
<di:waypoint x="927.0" y="475.0"/>
</bpmndi:BPMNEdge>
</bpmndi:BPMNPlane>
</bpmndi:BPMNDiagram>
</bpmn2:definitions>