AnsweredAssumed Answered

Completed tasks not Archived

Question asked by vamsi25 on Nov 29, 2012
Latest reply on Mar 2, 2016 by sunitanayak83
Hi,

I deployed and started the process using java class.When the user claims the task and completes it,then its not showing in archived folder.There are couple of scenearios ive tested

for candidateGroups  and  potential owner in bpmn xml  if i use activiti:formProperty for both types of assigning

complete tasks are not shown in archive.if i dont use formProperty then it shows in archived

Below is my bpmn xml:
<?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:activiti="http://activiti.org/bpmn" 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" typeLanguage="http://www.w3.org/2001/XMLSchema" expressionLanguage="http://www.w3.org/1999/XPath" targetNamespace="http://www.activiti.org/test">
 

                
        <process id="bookorder" name="Order book">
                <startEvent id="startevent1" name="Start"/>
                <sequenceFlow id="sequenceflow1" name="Validate order" sourceRef="startevent1" targetRef="scripttask1"/>
                <scriptTask id="scripttask1" name="Validate order" scriptFormat="groovy">
                        <script>
                                out:println "validating order for isbn " + isbn;
                        </script>
                </scriptTask>
                <sequenceFlow id="sequenceflow2" name="Sending to sales" sourceRef="scripttask1" targetRef="usertask1"/>
                <userTask id="usertask1" name="Work on order" activiti:candidateGroups="sales">
                        <documentation>book order user task</documentation>
                       
                        <extensionElements>
      
        <activiti:formProperty id="isbn" name="isbn"  writable="false"/>
       
       
      </extensionElements>
                </userTask>
                <sequenceFlow id="sequenceflow3" name="Ending process" sourceRef="usertask1" targetRef="endevent1"/>
                <endEvent id="endevent1" name="End"/>
        </process>
</definitions>

Outcomes