Deleted.

cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Established Member

Deleted.

Jump to solution

Deleted.

1 Solution

Accepted Solutions
Highlighted
Established Member II

Re: Is there a way to determine if the task was reassigned?

Jump to solution

For future reference, for those who have the same question.

This was answered on StackOverflow earlier - that answer is as follows.

"Yes you can do it by using assignment event"

<userTask id="test" name="Assignb" activiti:assignee="userName" activiti:formKey="<<formKey>>">
   <extensionElements>
      <activiti:taskListener event="assignment" class="org.alfresco.repo.workflow.activiti.tasklistener.ScriptTaskListener">
         <activiti:field name="script">
            <activiti:string><![CDATA[
               var currAssignee = task.assignee;
               //gives current task assignee
               logger.log(currAssignee );
               ]]></activiti:string>

            </activiti:field>

 </activiti:taskListener>
         <activiti:taskListener event="complete" class="org.alfresco.repo.workflow.activiti.tasklistener.ScriptTaskListener">
 <activiti:field name="script">
 <activiti:string><![CDATA[var currAssignee = task.assignee;]]></activiti:string>
 </activiti:field>
 </activiti:taskListener>
 </extensionElements>
</userTask>


Hope this helps other in the future,
-JEarles
bp3

View solution in original post

1 Reply
Highlighted
Established Member II

Re: Is there a way to determine if the task was reassigned?

Jump to solution

For future reference, for those who have the same question.

This was answered on StackOverflow earlier - that answer is as follows.

"Yes you can do it by using assignment event"

<userTask id="test" name="Assignb" activiti:assignee="userName" activiti:formKey="<<formKey>>">
   <extensionElements>
      <activiti:taskListener event="assignment" class="org.alfresco.repo.workflow.activiti.tasklistener.ScriptTaskListener">
         <activiti:field name="script">
            <activiti:string><![CDATA[
               var currAssignee = task.assignee;
               //gives current task assignee
               logger.log(currAssignee );
               ]]></activiti:string>

            </activiti:field>

 </activiti:taskListener>
         <activiti:taskListener event="complete" class="org.alfresco.repo.workflow.activiti.tasklistener.ScriptTaskListener">
 <activiti:field name="script">
 <activiti:string><![CDATA[var currAssignee = task.assignee;]]></activiti:string>
 </activiti:field>
 </activiti:taskListener>
 </extensionElements>
</userTask>


Hope this helps other in the future,
-JEarles
bp3

View solution in original post