<?xml version="1.0" encoding="UTF-8"?>
<!-- origin at X=0.0 Y=0.0 -->
<bpmn2:definitions xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:bpmn2="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:bpmn20="http://www.omg.org/bpmn20" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:bpsim="http://www.bpsim.org/schemas/1.0" xmlns:dc="http://www.omg.org/spec/DD/20100524/DC" xmlns:di="http://www.omg.org/spec/DD/20100524/DI" xmlns:drools="http://www.jboss.org/drools" xmlns="http://www.jboss.org/drools" xmlns:ns="http://www.w3.org/2001/XMLSchema" xsi:schemaLocation="http://www.omg.org/spec/BPMN/20100524/MODEL BPMN20.xsd http://www.jboss.org/drools drools.xsd http://www.bpsim.org/schemas/1.0 bpsim.xsd" id="_TQSqoEcJEemyodG9iPy-Bw" exporter="org.eclipse.bpmn2.modeler.core" exporterVersion="1.5.0.Final-v20180515-1642-B1" targetNamespace="http://www.omg.org/bpmn20">
  <bpmn2:itemDefinition id="_orderItem" isCollection="false" structureRef="io.quarkus.it.kogito.jbpm.Order"/>
  <bpmn2:itemDefinition id="_itemItem" isCollection="false" structureRef="String"/>
  <bpmn2:itemDefinition id="__30B30BDA-D41B-4E4A-8037-F6BAF9EF29DC_SkippableInputXItem" isCollection="false" structureRef="Object"/>
  <bpmn2:itemDefinition id="__30B30BDA-D41B-4E4A-8037-F6BAF9EF29DC_PriorityInputXItem" isCollection="false" structureRef="Object"/>
  <bpmn2:itemDefinition id="__30B30BDA-D41B-4E4A-8037-F6BAF9EF29DC_CommentInputXItem" isCollection="false" structureRef="Object"/>
  <bpmn2:itemDefinition id="__30B30BDA-D41B-4E4A-8037-F6BAF9EF29DC_DescriptionInputXItem" isCollection="false" structureRef="Object"/>
  <bpmn2:itemDefinition id="__30B30BDA-D41B-4E4A-8037-F6BAF9EF29DC_CreatedByInputXItem" isCollection="false" structureRef="Object"/>
  <bpmn2:itemDefinition id="__30B30BDA-D41B-4E4A-8037-F6BAF9EF29DC_TaskNameInputXItem" isCollection="false" structureRef="Object"/>
  <bpmn2:itemDefinition id="__30B30BDA-D41B-4E4A-8037-F6BAF9EF29DC_GroupIdInputXItem" isCollection="false" structureRef="Object"/>
  <bpmn2:itemDefinition id="__30B30BDA-D41B-4E4A-8037-F6BAF9EF29DC_ContentInputXItem" isCollection="false" structureRef="Object"/>
  <bpmn2:itemDefinition id="__30B30BDA-D41B-4E4A-8037-F6BAF9EF29DC_orderInputXItem" isCollection="false" structureRef="io.quarkus.it.kogito.jbpm.Order"/>
  <bpmn2:itemDefinition id="__30B30BDA-D41B-4E4A-8037-F6BAF9EF29DC_itemOutputXItem" isCollection="false" structureRef="String"/>
  <bpmn2:itemDefinition id="ItemDefinition_1" isCollection="false" structureRef="io.quarkus.it.kogito.jbpm.Order"/>
  <bpmn2:itemDefinition id="ItemDefinition_2" isCollection="false" structureRef="Object"/>
  <bpmn2:itemDefinition id="ItemDefinition_3" isCollection="false" structureRef="Object"/>
  <bpmn2:itemDefinition id="ItemDefinition_4" isCollection="false" structureRef="Object"/>
  <bpmn2:itemDefinition id="ItemDefinition_5" isCollection="false" structureRef="Object"/>
  <bpmn2:itemDefinition id="ItemDefinition_6" isCollection="false" structureRef="Object"/>
  <bpmn2:itemDefinition id="ItemDefinition_7" isCollection="false" structureRef="Object"/>
  <bpmn2:itemDefinition id="ItemDefinition_8" isCollection="false" structureRef="Object"/>
  <bpmn2:itemDefinition id="ItemDefinition_9" isCollection="false" structureRef="Object"/>
  <bpmn2:itemDefinition id="ItemDefinition_10" isCollection="false" structureRef="Object"/>
  <bpmn2:itemDefinition id="ItemDefinition_11" isCollection="false" structureRef="Object"/>
  <bpmn2:itemDefinition id="ItemDefinition_12" isCollection="false" structureRef="Object"/>
  <bpmn2:itemDefinition id="ItemDefinition_13" isCollection="false" structureRef="Object"/>
  <bpmn2:itemDefinition id="ItemDefinition_14" isCollection="false" structureRef="java.lang.String"/>
  <bpmn2:itemDefinition id="ItemDefinition_15" isCollection="false" structureRef="java.lang.Integer"/>
  <bpmn2:itemDefinition id="ItemDefinition_16" isCollection="false" structureRef="java.lang.Boolean"/>
  <bpmn2:message id="Message_1" itemRef="ItemDefinition_1" name="Message 1"/>
  <bpmn2:message id="Message_2" itemRef="ItemDefinition_1" name="Message 2"/>
  <bpmn2:interface id="Interface_1" implementationRef="io.quarkus.it.kogito.jbpm.CalculationService" name="CalculationService">
    <bpmn2:operation id="Operation_1" name="calculateTotal">
      <bpmn2:inMessageRef>Message_1</bpmn2:inMessageRef>
      <bpmn2:outMessageRef>Message_2</bpmn2:outMessageRef>
    </bpmn2:operation>
  </bpmn2:interface>
  <bpmn2:process id="demo.orderItems" drools:packageName="io.quarkus.it.kogito.jbpm" drools:version="1.0" drools:adHoc="false" name="orderItems" isExecutable="true" processType="Private">
    <bpmn2:extensionElements>
      <drools:import name="io.quarkus.it.kogito.jbpm.Order"/>
    </bpmn2:extensionElements>
    <bpmn2:property id="order" itemSubjectRef="_orderItem" name="order"/>
    <bpmn2:property id="item" itemSubjectRef="_itemItem" name="item"/>
    <bpmn2:startEvent id="_6AB17406-9386-43F2-BC8B-C987B93CA9F2">
      <bpmn2:extensionElements>
        <drools:metaData name="elementname">
          <drools:metaValue><![CDATA[]]></drools:metaValue>
        </drools:metaData>
      </bpmn2:extensionElements>
      <bpmn2:outgoing>SequenceFlow_1</bpmn2:outgoing>
    </bpmn2:startEvent>
    <bpmn2:endEvent id="_ACB2B473-2FCB-4E52-B96A-C0926782126F">
      <bpmn2:extensionElements>
        <drools:metaData name="elementname">
          <drools:metaValue><![CDATA[]]></drools:metaValue>
        </drools:metaData>
      </bpmn2:extensionElements>
      <bpmn2:incoming>SequenceFlow_4</bpmn2:incoming>
    </bpmn2:endEvent>
    <bpmn2:serviceTask id="ServiceTask_1" name="Calculate total" implementation="java" operationRef="Operation_1">
      <bpmn2:extensionElements>
        <drools:metaData name="elementname">
          <drools:metaValue><![CDATA[Calculate total]]></drools:metaValue>
        </drools:metaData>
      </bpmn2:extensionElements>
      <bpmn2:incoming>SequenceFlow_1</bpmn2:incoming>
      <bpmn2:outgoing>SequenceFlow_3</bpmn2:outgoing>
      <bpmn2:ioSpecification id="InputOutputSpecification_4">
        <bpmn2:dataInput id="DataInput_1" itemSubjectRef="_orderItem" name="Parameter"/>
        <bpmn2:dataOutput id="DataOutput_1" itemSubjectRef="_orderItem" name="Result"/>
        <bpmn2:inputSet id="InputSet_4" name="Input Set 4">
          <bpmn2:dataInputRefs>DataInput_1</bpmn2:dataInputRefs>
        </bpmn2:inputSet>
        <bpmn2:outputSet id="OutputSet_4" name="Output Set 4">
          <bpmn2:dataOutputRefs>DataOutput_1</bpmn2:dataOutputRefs>
        </bpmn2:outputSet>
      </bpmn2:ioSpecification>
      <bpmn2:dataInputAssociation id="DataInputAssociation_2">
        <bpmn2:sourceRef>order</bpmn2:sourceRef>
        <bpmn2:targetRef>DataInput_1</bpmn2:targetRef>
      </bpmn2:dataInputAssociation>
      <bpmn2:dataOutputAssociation id="DataOutputAssociation_2">
        <bpmn2:sourceRef>DataOutput_1</bpmn2:sourceRef>
        <bpmn2:targetRef>order</bpmn2:targetRef>
      </bpmn2:dataOutputAssociation>
    </bpmn2:serviceTask>
    <bpmn2:sequenceFlow id="SequenceFlow_1" drools:priority="1" sourceRef="_6AB17406-9386-43F2-BC8B-C987B93CA9F2" targetRef="ServiceTask_1"/>
    <bpmn2:sequenceFlow id="SequenceFlow_3" drools:priority="1" sourceRef="ServiceTask_1" targetRef="UserTask_1"/>
    <bpmn2:userTask id="UserTask_1" name="Verify order">
      <bpmn2:extensionElements>
        <drools:metaData name="elementname">
          <drools:metaValue><![CDATA[Verify order]]></drools:metaValue>
        </drools:metaData>
      </bpmn2:extensionElements>
      <bpmn2:incoming>SequenceFlow_3</bpmn2:incoming>
      <bpmn2:outgoing>SequenceFlow_4</bpmn2:outgoing>
      <bpmn2:ioSpecification id="InputOutputSpecification_5">
        <bpmn2:dataInput id="DataInput_14" itemSubjectRef="ItemDefinition_14" name="TaskName"/>
        <bpmn2:dataInput id="DataInput_15" itemSubjectRef="ItemDefinition_15" name="Priority"/>
        <bpmn2:dataInput id="DataInput_16" itemSubjectRef="ItemDefinition_14" name="Comment"/>
        <bpmn2:dataInput id="DataInput_17" itemSubjectRef="ItemDefinition_14" name="Description"/>
        <bpmn2:dataInput id="DataInput_18" itemSubjectRef="ItemDefinition_14" name="GroupId"/>
        <bpmn2:dataInput id="DataInput_19" itemSubjectRef="ItemDefinition_16" name="Skippable"/>
        <bpmn2:dataInput id="DataInput_20" itemSubjectRef="ItemDefinition_14" name="Content"/>
        <bpmn2:dataInput id="DataInput_21" itemSubjectRef="ItemDefinition_14" name="Locale"/>
        <bpmn2:dataInput id="DataInput_22" itemSubjectRef="ItemDefinition_14" name="CreatedBy"/>
        <bpmn2:dataInput id="DataInput_23" itemSubjectRef="_orderItem" name="input1"/>
        <bpmn2:inputSet id="_InputSet_2">
          <bpmn2:dataInputRefs>DataInput_14</bpmn2:dataInputRefs>
          <bpmn2:dataInputRefs>DataInput_15</bpmn2:dataInputRefs>
          <bpmn2:dataInputRefs>DataInput_16</bpmn2:dataInputRefs>
          <bpmn2:dataInputRefs>DataInput_17</bpmn2:dataInputRefs>
          <bpmn2:dataInputRefs>DataInput_18</bpmn2:dataInputRefs>
          <bpmn2:dataInputRefs>DataInput_19</bpmn2:dataInputRefs>
          <bpmn2:dataInputRefs>DataInput_20</bpmn2:dataInputRefs>
          <bpmn2:dataInputRefs>DataInput_21</bpmn2:dataInputRefs>
          <bpmn2:dataInputRefs>DataInput_22</bpmn2:dataInputRefs>
          <bpmn2:dataInputRefs>DataInput_23</bpmn2:dataInputRefs>
        </bpmn2:inputSet>
        <bpmn2:outputSet id="OutputSet_5" name="Output Set"/>
      </bpmn2:ioSpecification>
      <bpmn2:dataInputAssociation id="DataInputAssociation_3">
        <bpmn2:targetRef>DataInput_14</bpmn2:targetRef>
        <bpmn2:assignment id="Assignment_1">
          <bpmn2:from xsi:type="bpmn2:tFormalExpression" id="FormalExpression_1">Verify order</bpmn2:from>
          <bpmn2:to xsi:type="bpmn2:tFormalExpression" id="FormalExpression_2">DataInput_14</bpmn2:to>
        </bpmn2:assignment>
      </bpmn2:dataInputAssociation>
      <bpmn2:dataInputAssociation id="DataInputAssociation_4">
        <bpmn2:targetRef>DataInput_15</bpmn2:targetRef>
        <bpmn2:assignment id="Assignment_2">
          <bpmn2:from xsi:type="bpmn2:tFormalExpression" id="FormalExpression_3">1</bpmn2:from>
          <bpmn2:to xsi:type="bpmn2:tFormalExpression" id="FormalExpression_4">DataInput_15</bpmn2:to>
        </bpmn2:assignment>
      </bpmn2:dataInputAssociation>
      <bpmn2:dataInputAssociation id="DataInputAssociation_5">
        <bpmn2:targetRef>DataInput_16</bpmn2:targetRef>
      </bpmn2:dataInputAssociation>
      <bpmn2:dataInputAssociation id="DataInputAssociation_6">
        <bpmn2:targetRef>DataInput_17</bpmn2:targetRef>
      </bpmn2:dataInputAssociation>
      <bpmn2:dataInputAssociation id="DataInputAssociation_7">
        <bpmn2:targetRef>DataInput_18</bpmn2:targetRef>
      </bpmn2:dataInputAssociation>
      <bpmn2:dataInputAssociation id="DataInputAssociation_8">
        <bpmn2:targetRef>DataInput_19</bpmn2:targetRef>
        <bpmn2:assignment id="Assignment_6">
          <bpmn2:from xsi:type="bpmn2:tFormalExpression" id="FormalExpression_11">true</bpmn2:from>
          <bpmn2:to xsi:type="bpmn2:tFormalExpression" id="FormalExpression_12">DataInput_19</bpmn2:to>
        </bpmn2:assignment>
      </bpmn2:dataInputAssociation>
      <bpmn2:dataInputAssociation id="DataInputAssociation_9">
        <bpmn2:targetRef>DataInput_20</bpmn2:targetRef>
      </bpmn2:dataInputAssociation>
      <bpmn2:dataInputAssociation id="DataInputAssociation_10">
        <bpmn2:targetRef>DataInput_21</bpmn2:targetRef>
        <bpmn2:assignment id="Assignment_8">
          <bpmn2:from xsi:type="bpmn2:tFormalExpression" id="FormalExpression_15">en-UK</bpmn2:from>
          <bpmn2:to xsi:type="bpmn2:tFormalExpression" id="FormalExpression_16">DataInput_21</bpmn2:to>
        </bpmn2:assignment>
      </bpmn2:dataInputAssociation>
      <bpmn2:dataInputAssociation id="DataInputAssociation_11">
        <bpmn2:targetRef>DataInput_22</bpmn2:targetRef>
      </bpmn2:dataInputAssociation>
      <bpmn2:dataInputAssociation id="DataInputAssociation_12">
        <bpmn2:sourceRef>order</bpmn2:sourceRef>
        <bpmn2:targetRef>DataInput_23</bpmn2:targetRef>
      </bpmn2:dataInputAssociation>
      <bpmn2:potentialOwner id="PotentialOwner_1" name="Potential Owner 1">
        <bpmn2:resourceAssignmentExpression id="ResourceAssignmentExpression_1">
          <bpmn2:formalExpression id="FormalExpression_19">john</bpmn2:formalExpression>
        </bpmn2:resourceAssignmentExpression>
      </bpmn2:potentialOwner>
    </bpmn2:userTask>
    <bpmn2:sequenceFlow id="SequenceFlow_4" drools:priority="1" sourceRef="UserTask_1" targetRef="_ACB2B473-2FCB-4E52-B96A-C0926782126F"/>
  </bpmn2:process>
  <bpmndi:BPMNDiagram id="_TQTRw0cJEemyodG9iPy-Bw">
    <bpmndi:BPMNPlane id="_TQTRxEcJEemyodG9iPy-Bw" bpmnElement="demo.orderItems">
      <bpmndi:BPMNShape id="shape__ACB2B473-2FCB-4E52-B96A-C0926782126F" bpmnElement="_ACB2B473-2FCB-4E52-B96A-C0926782126F">
        <dc:Bounds height="56.0" width="56.0" x="704.0" y="100.0"/>
        <bpmndi:BPMNLabel labelStyle="#//@definitions/@diagrams.0/@labelStyle.0"/>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="shape__6AB17406-9386-43F2-BC8B-C987B93CA9F2" bpmnElement="_6AB17406-9386-43F2-BC8B-C987B93CA9F2">
        <dc:Bounds height="56.0" width="56.0" x="100.0" y="100.0"/>
        <bpmndi:BPMNLabel labelStyle="#//@definitions/@diagrams.0/@labelStyle.0"/>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="BPMNShape_ServiceTask_1" bpmnElement="ServiceTask_1" isExpanded="true">
        <dc:Bounds height="102.0" width="161.0" x="220.0" y="77.0"/>
        <bpmndi:BPMNLabel labelStyle="#//@definitions/@diagrams.0/@labelStyle.0">
          <dc:Bounds height="11.0" width="58.0" x="271.0" y="122.0"/>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="BPMNShape_UserTask_1" bpmnElement="UserTask_1" isExpanded="true">
        <dc:Bounds height="102.0" width="131.0" x="490.0" y="77.0"/>
        <bpmndi:BPMNLabel>
          <dc:Bounds height="11.0" width="47.0" x="532.0" y="122.0"/>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_1" bpmnElement="SequenceFlow_1" sourceElement="shape__6AB17406-9386-43F2-BC8B-C987B93CA9F2" targetElement="BPMNShape_ServiceTask_1">
        <di:waypoint xsi:type="dc:Point" x="156.0" y="128.0"/>
        <di:waypoint xsi:type="dc:Point" x="188.0" y="128.0"/>
        <di:waypoint xsi:type="dc:Point" x="220.0" y="128.0"/>
        <bpmndi:BPMNLabel/>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_3" bpmnElement="SequenceFlow_3" sourceElement="BPMNShape_ServiceTask_1" targetElement="BPMNShape_UserTask_1">
        <di:waypoint xsi:type="dc:Point" x="381.0" y="128.0"/>
        <di:waypoint xsi:type="dc:Point" x="435.0" y="128.0"/>
        <di:waypoint xsi:type="dc:Point" x="490.0" y="128.0"/>
        <bpmndi:BPMNLabel/>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_4" bpmnElement="SequenceFlow_4" sourceElement="BPMNShape_UserTask_1" targetElement="shape__ACB2B473-2FCB-4E52-B96A-C0926782126F">
        <di:waypoint xsi:type="dc:Point" x="621.0" y="128.0"/>
        <di:waypoint xsi:type="dc:Point" x="662.0" y="128.0"/>
        <di:waypoint xsi:type="dc:Point" x="704.0" y="128.0"/>
        <bpmndi:BPMNLabel/>
      </bpmndi:BPMNEdge>
    </bpmndi:BPMNPlane>
    <bpmndi:BPMNLabelStyle>
      <dc:Font name="arial" size="9.0"/>
    </bpmndi:BPMNLabelStyle>
  </bpmndi:BPMNDiagram>
</bpmn2:definitions>