AnsweredAssumed Answered

Pass 'Claimed' Task Process to other Task Process in Model

Question asked by scscott on Mar 21, 2016
Latest reply on Mar 24, 2016 by scscott
I am new to Activiti and still trying to figure this all out.
I am creating a QA workflow for reports. Its pretty simple workflow:

Create Report -> QA Report -> Approve/Reject -> Submit Report.

My issue is that each report is not assigned to a user but is to be Claimed. If the report is rejected it goes back to "Create Report". I am not sure how to set the "Create Report", "Submit Report" to the user that claimed the workflow. Any help would be great.

<process id="ScheduleReview" name="Schedule Review" isExecutable="true">
     <userTask id="sid-A3C9124A-222E-4549-8B1A-9E0ABE84EE20" name="QA Schedule Review" activiti:candidateGroups="qa">
          <extensionElements>
               <activiti:formProperty id="reviseReview" name="Revise the Schedule Review?" type="enum" required="true">
                    <activiti:value id="true" name="Yes"/>
                    <activiti:value id="false" name="No"/>
               </activiti:formProperty>
          </extensionElements>
     </userTask>
     <endEvent id="sid-96A146C1-74CD-42E0-98E1-A44D1F5AF20F" name="End"/>
      <userTask id="sid-6B2CB8BF-5E8A-4E7C-B2E4-0322B7BE162E" name="Finalize Report/Exhibits" activiti:candidateGroups="reviewer"/>
          <exclusiveGateway id="sid-8E221FC1-1E87-46C4-9870-BE8831F01B5A" name="Revise?"/>
     <userTask id="sid-0EB55542-5AC4-400B-BB73-B7A1E7FABA4C" name="Start Schedule Review" activiti:candidateGroups="reviewer">
          <documentation>
Project: ${projName} Update ${updateNumber} is due ${dueDate} and is ready for review.
          </documentation>
     </userTask>
     <startEvent id="sid-A8C30A8D-E9C6-498D-BCAE-DB8F287B818C">
          <extensionElements>
          <activiti:formProperty id="projName" name="Project Name:" type="string" required="true"/>
               <activiti:formProperty id="updateNumber" name="Update:" type="string" required="true"/>
               <activiti:formProperty id="dueDate" name="Due Date" type="date" datePattern="MMM-dd-yy" required="true"/>
          </extensionElements>
     </startEvent>
     <sequenceFlow id="Flow1" sourceRef="sid-A8C30A8D-E9C6-498D-BCAE-DB8F287B818C" targetRef="sid-0EB55542-5AC4-400B-BB73-B7A1E7FABA4C"/>
     <sequenceFlow id="Flow2" sourceRef="sid-0EB55542-5AC4-400B-BB73-B7A1E7FABA4C" targetRef="sid-A3C9124A-222E-4549-8B1A-9E0ABE84EE20"/>
     <sequenceFlow id="Flow3" sourceRef="sid-A3C9124A-222E-4549-8B1A-9E0ABE84EE20" targetRef="sid-8E221FC1-1E87-46C4-9870-BE8831F01B5A"/>
     <sequenceFlow id="Flow4" sourceRef="sid-6B2CB8BF-5E8A-4E7C-B2E4-0322B7BE162E" targetRef="sid-96A146C1-74CD-42E0-98E1-A44D1F5AF20F"/>
     <sequenceFlow id="FlowNo" name="No" sourceRef="sid-8E221FC1-1E87-46C4-9870-BE8831F01B5A" targetRef="sid-6B2CB8BF-5E8A-4E7C-B2E4-0322B7BE162E">
          <conditionExpression xsi:type="tFormalExpression">
               <![CDATA[ ${reviseReview == 'false'} ]]>
          </conditionExpression>
     </sequenceFlow>
     <sequenceFlow id="FlowYes" name="Yes" sourceRef="sid-8E221FC1-1E87-46C4-9870-BE8831F01B5A" targetRef="sid-0EB55542-5AC4-400B-BB73-B7A1E7FABA4C">
          <conditionExpression xsi:type="tFormalExpression">
               <![CDATA[ ${reviseReview == 'true'} ]]>
          </conditionExpression>
     </sequenceFlow>
</process>

Outcomes