<?xml version="1.0" encoding="UTF-8"?>
<definitions xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:omgdc="http://www.omg.org/spec/DD/20100524/DC" xmlns:omgdi="http://www.omg.org/spec/DD/20100524/DI" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:activiti="http://activiti.org/bpmn" targetNamespace="http://www.activiti.org/processdef" exporter="bpmn-js (https://demo.bpmn.io)" exporterVersion="5.1.2">
  <process id="assignment_example" name="Assignment Example" isExecutable="true">
    <startEvent id="startEvent1" name="START" activiti:initiator="initiator">
      <outgoing>SequenceFlow_0w8l985</outgoing>
    </startEvent>
    <endEvent id="sid-FCCB3478-2C21-4226-BB20-C0B16B2FC124" name="END">
      <incoming>SequenceFlow_0su1q0e</incoming>
    </endEvent>
    <parallelGateway id="ExclusiveGateway_1j93syk">
      <incoming>SequenceFlow_0w8l985</incoming>
      <outgoing>SequenceFlow_1v0xvfb</outgoing>
      <outgoing>SequenceFlow_14l77o2</outgoing>
      <outgoing>SequenceFlow_1yx1f2j</outgoing>
      <outgoing>SequenceFlow_0expm9s</outgoing>
      <outgoing>SequenceFlow_123pjch</outgoing>
      <outgoing>SequenceFlow_02du0bp</outgoing>
      <outgoing>SequenceFlow_1y5ruvt</outgoing>
      <outgoing>SequenceFlow_1palrhb</outgoing>
    </parallelGateway>
    <sequenceFlow id="SequenceFlow_1v0xvfb" sourceRef="ExclusiveGateway_1j93syk" targetRef="app1.process1.taskForInitiator" />
    <userTask id="app1.process1.taskForInitiator" name="TASK FOR INITIATOR" activiti:formKey="fillOutInvitationInformation" activiti:assignee="${initiator}">
      <incoming>SequenceFlow_1v0xvfb</incoming>
      <outgoing>SequenceFlow_0qci18l</outgoing>
    </userTask>
    <sequenceFlow id="SequenceFlow_14l77o2" sourceRef="ExclusiveGateway_1j93syk" targetRef="app1.process1.taskForUser" />
    <userTask id="app1.process1.taskForUser" name="TASK FOR USER" activiti:formKey="fillOutInvitationInformation"  activiti:assignee="lolo">
      <incoming>SequenceFlow_14l77o2</incoming>
      <outgoing>SequenceFlow_0kg3afq</outgoing>
    </userTask>
    <sequenceFlow id="SequenceFlow_1yx1f2j" sourceRef="ExclusiveGateway_1j93syk" targetRef="app1.process1.taskForCandidateGroups" />
    <userTask id="app1.process1.taskForCandidateGroups" name="TASK FOR CANDIDATE GROUPS" activiti:formKey="fillOutInvitationInformation"  activiti:candidateGroups="hr, testgroup, someothergroup">
      <incoming>SequenceFlow_1yx1f2j</incoming>
      <outgoing>SequenceFlow_0ax83tt</outgoing>
    </userTask>
    <sequenceFlow id="SequenceFlow_0expm9s" sourceRef="ExclusiveGateway_1j93syk" targetRef="app1.process1.taskForCandidateUsers" />
    <userTask id="app1.process1.taskForCandidateUsers" name="TASK FOR CANDIDATE USERS" activiti:formKey="fillOutInvitationInformation"  activiti:candidateUsers="dino,lolo">
      <incoming>SequenceFlow_0expm9s</incoming>
      <outgoing>SequenceFlow_11wcq6i</outgoing>
    </userTask>
    <sequenceFlow id="SequenceFlow_0w8l985" sourceRef="startEvent1" targetRef="ExclusiveGateway_1j93syk" />
    <parallelGateway id="ExclusiveGateway_18srfdd">
      <incoming>SequenceFlow_0qci18l</incoming>
      <incoming>SequenceFlow_0kg3afq</incoming>
      <incoming>SequenceFlow_0ax83tt</incoming>
      <incoming>SequenceFlow_11wcq6i</incoming>
      <incoming>SequenceFlow_0nknjl2</incoming>
      <incoming>SequenceFlow_0sic84e</incoming>
      <incoming>SequenceFlow_1d78op2</incoming>
      <incoming>SequenceFlow_0je4nt3</incoming>
      <outgoing>SequenceFlow_0su1q0e</outgoing>
    </parallelGateway>
    <sequenceFlow id="SequenceFlow_0qci18l" sourceRef="app1.process1.taskForInitiator" targetRef="ExclusiveGateway_18srfdd" />
    <sequenceFlow id="SequenceFlow_0kg3afq" sourceRef="app1.process1.taskForUser" targetRef="ExclusiveGateway_18srfdd" />
    <sequenceFlow id="SequenceFlow_0ax83tt" sourceRef="app1.process1.taskForCandidateGroups" targetRef="ExclusiveGateway_18srfdd" />
    <sequenceFlow id="SequenceFlow_11wcq6i" sourceRef="app1.process1.taskForCandidateUsers" targetRef="ExclusiveGateway_18srfdd" />
    <sequenceFlow id="SequenceFlow_0su1q0e" sourceRef="ExclusiveGateway_18srfdd" targetRef="sid-FCCB3478-2C21-4226-BB20-C0B16B2FC124" />
    <sequenceFlow id="SequenceFlow_123pjch" sourceRef="ExclusiveGateway_1j93syk" targetRef="app1.process1.taskWithNoAssignee" />
    <sequenceFlow id="SequenceFlow_0nknjl2" sourceRef="app1.process1.taskWithNoAssignee" targetRef="ExclusiveGateway_18srfdd" />
    <userTask id="app1.process1.taskWithNoAssignee" name="TASK WITH NO ASSIGNEE" activiti:formKey="fillOutInvitationInformation" >
      <incoming>SequenceFlow_123pjch</incoming>
      <outgoing>SequenceFlow_0nknjl2</outgoing>
    </userTask>
    <sequenceFlow id="SequenceFlow_02du0bp" sourceRef="ExclusiveGateway_1j93syk" targetRef="app1.process1.taskWithUsersField" />
    <sequenceFlow id="SequenceFlow_0sic84e" sourceRef="app1.process1.taskWithUsersField" targetRef="ExclusiveGateway_18srfdd" />
    <userTask id="app1.process1.taskWithUsersField" name="TASK WITH USERS FIELD" activiti:formKey="fillOutInvitationInformation"  activiti:candidateUsersField="identificationNumber" activiti:candidateUserVariableName="asiggneeFromUsersField" activiti:assignationStrategy="NONE">
      <incoming>SequenceFlow_02du0bp</incoming>
      <outgoing>SequenceFlow_0sic84e</outgoing>
    </userTask>
    <sequenceFlow id="SequenceFlow_1y5ruvt" sourceRef="ExclusiveGateway_1j93syk" targetRef="app1.process1.taskWithGroupsField" />
    <sequenceFlow id="SequenceFlow_1d78op2" sourceRef="app1.process1.taskWithGroupsField" targetRef="ExclusiveGateway_18srfdd" />
    <userTask id="app1.process1.taskWithGroupsField" name="TASK WITH GROUPS FIELD" activiti:formKey="fillOutInvitationInformation"  activiti:candidateGroupsField="child1.childToChild2.child2ToChild3.firstName3" activiti:candidateUserVariableName="asiggneeFromGroupsField">
      <incoming>SequenceFlow_1y5ruvt</incoming>
      <outgoing>SequenceFlow_1d78op2</outgoing>
    </userTask>
    <sequenceFlow id="SequenceFlow_1palrhb" sourceRef="ExclusiveGateway_1j93syk" targetRef="app1.process1.taskWithCandidateRoles" />
    <sequenceFlow id="SequenceFlow_0je4nt3" sourceRef="app1.process1.taskWithCandidateRoles" targetRef="ExclusiveGateway_18srfdd" />
    <userTask id="app1.process1.taskWithCandidateRoles" name="TASK WITH CANDIDATE ROLES" activiti:formKey="fillOutInvitationInformation"  activiti:candidateRoles="role1,role2" activiti:candidateUserVariableName="asiggneeFromRolesTask" activiti:assignationStrategy="ROUND_ROBIN">
      <incoming>SequenceFlow_1palrhb</incoming>
      <outgoing>SequenceFlow_0je4nt3</outgoing>
    </userTask>
  </process>
  <bpmndi:BPMNDiagram id="BPMNDiagram_assignment_example">
    <bpmndi:BPMNPlane id="BPMNPlane_completeformprocess" bpmnElement="assignment_example">
      <bpmndi:BPMNShape id="BPMNShape_startEvent1" bpmnElement="startEvent1">
        <omgdc:Bounds x="125" y="355" width="30" height="30" />
        <bpmndi:BPMNLabel>
          <omgdc:Bounds x="122" y="392" width="36" height="14" />
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="BPMNShape_sid-FCCB3478-2C21-4226-BB20-C0B16B2FC124" bpmnElement="sid-FCCB3478-2C21-4226-BB20-C0B16B2FC124">
        <omgdc:Bounds x="826" y="356" width="28" height="28" />
        <bpmndi:BPMNLabel>
          <omgdc:Bounds x="828" y="391" width="24" height="14" />
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="ParallelGateway_1sj37zu_di" bpmnElement="ExclusiveGateway_1j93syk">
        <omgdc:Bounds x="255" y="345" width="50" height="50" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNEdge id="SequenceFlow_1v0xvfb_di" bpmnElement="SequenceFlow_1v0xvfb">
        <omgdi:waypoint x="280" y="345" />
        <omgdi:waypoint x="280" y="240" />
        <omgdi:waypoint x="470" y="240" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNShape id="UserTask_1mn0bek_di" bpmnElement="app1.process1.taskForInitiator">
        <omgdc:Bounds x="470" y="200" width="100" height="80" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNEdge id="SequenceFlow_14l77o2_di" bpmnElement="SequenceFlow_14l77o2">
        <omgdi:waypoint x="305" y="370" />
        <omgdi:waypoint x="470" y="370" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNShape id="UserTask_0lg8x67_di" bpmnElement="app1.process1.taskForUser">
        <omgdc:Bounds x="470" y="330" width="100" height="80" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNEdge id="SequenceFlow_1yx1f2j_di" bpmnElement="SequenceFlow_1yx1f2j">
        <omgdi:waypoint x="280" y="395" />
        <omgdi:waypoint x="280" y="480" />
        <omgdi:waypoint x="470" y="480" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNShape id="UserTask_1b3mdtp_di" bpmnElement="app1.process1.taskForCandidateGroups">
        <omgdc:Bounds x="470" y="440" width="100" height="80" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNEdge id="SequenceFlow_0expm9s_di" bpmnElement="SequenceFlow_0expm9s">
        <omgdi:waypoint x="280" y="395" />
        <omgdi:waypoint x="280" y="590" />
        <omgdi:waypoint x="470" y="590" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNShape id="UserTask_1radk3p_di" bpmnElement="app1.process1.taskForCandidateUsers">
        <omgdc:Bounds x="470" y="550" width="100" height="80" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNEdge id="SequenceFlow_0w8l985_di" bpmnElement="SequenceFlow_0w8l985">
        <omgdi:waypoint x="155" y="370" />
        <omgdi:waypoint x="255" y="370" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNShape id="ParallelGateway_01uh04g_di" bpmnElement="ExclusiveGateway_18srfdd">
        <omgdc:Bounds x="695" y="345" width="50" height="50" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNEdge id="SequenceFlow_0qci18l_di" bpmnElement="SequenceFlow_0qci18l">
        <omgdi:waypoint x="570" y="240" />
        <omgdi:waypoint x="720" y="240" />
        <omgdi:waypoint x="720" y="345" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="SequenceFlow_0kg3afq_di" bpmnElement="SequenceFlow_0kg3afq">
        <omgdi:waypoint x="570" y="370" />
        <omgdi:waypoint x="695" y="370" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="SequenceFlow_0ax83tt_di" bpmnElement="SequenceFlow_0ax83tt">
        <omgdi:waypoint x="570" y="480" />
        <omgdi:waypoint x="720" y="480" />
        <omgdi:waypoint x="720" y="395" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="SequenceFlow_11wcq6i_di" bpmnElement="SequenceFlow_11wcq6i">
        <omgdi:waypoint x="570" y="590" />
        <omgdi:waypoint x="720" y="590" />
        <omgdi:waypoint x="720" y="395" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="SequenceFlow_0su1q0e_di" bpmnElement="SequenceFlow_0su1q0e">
        <omgdi:waypoint x="745" y="370" />
        <omgdi:waypoint x="826" y="370" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="SequenceFlow_123pjch_di" bpmnElement="SequenceFlow_123pjch">
        <omgdi:waypoint x="280" y="345" />
        <omgdi:waypoint x="280" y="120" />
        <omgdi:waypoint x="470" y="120" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="SequenceFlow_0nknjl2_di" bpmnElement="SequenceFlow_0nknjl2">
        <omgdi:waypoint x="570" y="120" />
        <omgdi:waypoint x="720" y="120" />
        <omgdi:waypoint x="720" y="345" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNShape id="UserTask_0h2d5pr_di" bpmnElement="app1.process1.taskWithNoAssignee">
        <omgdc:Bounds x="470" y="80" width="100" height="80" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNEdge id="SequenceFlow_02du0bp_di" bpmnElement="SequenceFlow_02du0bp">
        <omgdi:waypoint x="280" y="395" />
        <omgdi:waypoint x="280" y="710" />
        <omgdi:waypoint x="470" y="710" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="SequenceFlow_0sic84e_di" bpmnElement="SequenceFlow_0sic84e">
        <omgdi:waypoint x="570" y="710" />
        <omgdi:waypoint x="720" y="710" />
        <omgdi:waypoint x="720" y="395" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNShape id="UserTask_1rlzd3s_di" bpmnElement="app1.process1.taskWithUsersField">
        <omgdc:Bounds x="470" y="670" width="100" height="80" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNEdge id="SequenceFlow_1y5ruvt_di" bpmnElement="SequenceFlow_1y5ruvt">
        <omgdi:waypoint x="280" y="395" />
        <omgdi:waypoint x="280" y="820" />
        <omgdi:waypoint x="470" y="820" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="SequenceFlow_1d78op2_di" bpmnElement="SequenceFlow_1d78op2">
        <omgdi:waypoint x="570" y="820" />
        <omgdi:waypoint x="720" y="820" />
        <omgdi:waypoint x="720" y="395" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNShape id="UserTask_0w5g4m8_di" bpmnElement="app1.process1.taskWithGroupsField">
        <omgdc:Bounds x="470" y="780" width="100" height="80" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNEdge id="SequenceFlow_1palrhb_di" bpmnElement="SequenceFlow_1palrhb">
        <omgdi:waypoint x="280" y="395" />
        <omgdi:waypoint x="280" y="920" />
        <omgdi:waypoint x="470" y="920" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="SequenceFlow_0je4nt3_di" bpmnElement="SequenceFlow_0je4nt3">
        <omgdi:waypoint x="570" y="920" />
        <omgdi:waypoint x="720" y="920" />
        <omgdi:waypoint x="720" y="395" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNShape id="UserTask_08ihofk_di" bpmnElement="app1.process1.taskWithCandidateRoles">
        <omgdc:Bounds x="470" y="880" width="100" height="80" />
      </bpmndi:BPMNShape>
    </bpmndi:BPMNPlane>
  </bpmndi:BPMNDiagram>
</definitions>
