office-dynamixs-ai/doc/modelling-summarization.bpmn
2026-01-02 15:18:56 +01:00

186 lines
10 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:intermediateCatchEvent id="event_niedQQ" imixs:activityid="10" name="✅ Summarization">
<bpmn2:documentation id="documentation_MBhkPQ"/>
<bpmn2:incoming>sequenceFlow_vjN4ow</bpmn2:incoming>
<bpmn2:outgoing>sequenceFlow_GAe7Gg</bpmn2:outgoing>
<bpmn2:signalEventDefinition id="signalEventDefinition_INWMRA" signalRef="signal_1"/>
</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[☑️ Summarize the following invoice for finance.
Focus on:
- Vendor and invoice number
- Total amount and currency
- Payment terms and due date
- Line items overview
- Any unusual charges or discrepancies
Keep the summary under 200 words. Use the original document language {language}.
Invoice Content:
{document_text}]]></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:task id="task_L133Xw" imixs:processid="200" name="&#128196; Invoice Processing">
<bpmn2:extensionElements/>
<bpmn2:documentation id="documentation_ramFEg"/>
<bpmn2:incoming>sequenceFlow_xzsTOg</bpmn2:incoming>
<bpmn2:outgoing>sequenceFlow_vjN4ow</bpmn2:outgoing>
</bpmn2:task>
<bpmn2:sequenceFlow id="sequenceFlow_GAe7Gg" sourceRef="event_niedQQ" targetRef="event_5pszBQ">
<bpmn2:documentation id="documentation_tneb3w"/>
</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:intermediateCatchEvent id="event_qPfuAQ" name="Categoriyzation">
<bpmn2:documentation id="documentation_downwg"/>
<bpmn2:outgoing>sequenceFlow_xzsTOg</bpmn2:outgoing>
<bpmn2:linkEventDefinition id="linkEventDefinition_xwHE3g"/>
</bpmn2:intermediateCatchEvent>
<bpmn2:sequenceFlow id="sequenceFlow_xzsTOg" sourceRef="event_qPfuAQ" targetRef="task_L133Xw">
<bpmn2:documentation id="documentation_3oNU0w"/>
</bpmn2:sequenceFlow>
<bpmn2:sequenceFlow id="sequenceFlow_vjN4ow" sourceRef="task_L133Xw" targetRef="event_niedQQ">
<bpmn2:documentation id="documentation_a90yew"/>
</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="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="687.0" y="537.0"/>
<bpmndi:BPMNLabel id="BPMNLabel_0AKR2g">
<dc:Bounds height="20.0" width="100.0" x="655.0" y="576.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:BPMNShape bpmnElement="event_niedQQ" id="BPMNShape_TjS4HQ">
<dc:Bounds height="36.0" width="36.0" x="567.0" y="537.0"/>
<bpmndi:BPMNLabel id="BPMNLabel_KXscdQ">
<dc:Bounds height="20.0" width="100.0" x="535.0" y="576.0"/>
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape bpmnElement="dataObject_6cOkKQ" id="BPMNShape_OX2wsg">
<dc:Bounds height="50.0" width="35.0" x="570.0" y="410.0"/>
<bpmndi:BPMNLabel id="BPMNLabel_HAEE0w">
<dc:Bounds height="20.0" width="100.0" x="537.5" y="465.0"/>
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape bpmnElement="textAnnotation_0at23Q" id="BPMNShape_iHgbbQ">
<dc:Bounds height="203.0" width="354.0" x="150.0" y="250.0"/>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape bpmnElement="event_qPfuAQ" id="BPMNShape_mDg2JQ">
<dc:Bounds height="36.0" width="36.0" x="257.0" y="537.0"/>
<bpmndi:BPMNLabel id="BPMNLabel_BncPzw">
<dc:Bounds height="20.0" width="100.0" x="225.0" y="576.0"/>
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge bpmnElement="association_6Hfsww" id="BPMNEdge_szAS0Q" sourceElement="BPMNShape_iHgbbQ" targetElement="BPMNShape_OX2wsg">
<di:waypoint x="504.0" y="352.0"/>
<di:waypoint x="583.0" y="352.0"/>
<di:waypoint x="583.0" y="410.0"/>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge bpmnElement="association_dpwf6A" id="BPMNEdge_iilkRw" sourceElement="BPMNShape_OX2wsg" targetElement="BPMNShape_TjS4HQ">
<di:waypoint x="588.0" y="460.0"/>
<di:waypoint x="588.0" y="499.0"/>
<di:waypoint x="585.0" y="499.0"/>
<di:waypoint x="585.0" y="537.0"/>
</bpmndi:BPMNEdge>
<bpmndi:BPMNShape bpmnElement="task_L133Xw" id="BPMNShape_YZRbHw">
<dc:Bounds height="50.0" width="110.0" x="360.0" y="530.0"/>
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge bpmnElement="sequenceFlow_GAe7Gg" id="BPMNEdge_nO1aqw" sourceElement="BPMNShape_TjS4HQ" targetElement="BPMNShape_eCqWQw">
<di:waypoint x="603.0" y="555.0"/>
<di:waypoint x="687.0" y="555.0"/>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge bpmnElement="sequenceFlow_xzsTOg" id="BPMNEdge_ToVbEg" sourceElement="BPMNShape_mDg2JQ" targetElement="BPMNShape_YZRbHw">
<di:waypoint x="293.0" y="555.0"/>
<di:waypoint x="360.0" y="555.0"/>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge bpmnElement="sequenceFlow_vjN4ow" id="BPMNEdge_L0VhCw" sourceElement="BPMNShape_YZRbHw" targetElement="BPMNShape_TjS4HQ">
<di:waypoint x="470.0" y="555.0"/>
<di:waypoint x="567.0" y="555.0"/>
</bpmndi:BPMNEdge>
</bpmndi:BPMNPlane>
</bpmndi:BPMNDiagram>
</bpmn2:definitions>