Deleted.
Solved! Go 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
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
Ask for and offer help to other Alfresco Process Services and Activiti Users and members of the Alfresco team.
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.