AnsweredAssumed Answered

Task variables and outcomes

Question asked by drisschelouati on Oct 21, 2015
Latest reply on Oct 26, 2015 by vasile.dirla
Hello activiti people,

i dont know if this was already answered, but i searched the forum and didnt find a thread on this. The only thing is that iam really new to programming stuff (i began coding in february 2015) but iam improving quick. I mainly use the embedded activiti engine in Alfresco, because  my job is about managing records and documents. Since i find that activiti is really an outstanding product, i really want to boost my learning curve.

As iam also new to JavaScript, i it is still difficult to manage task outcomes like in a mutliple review tasks process. I posted the following thread on Alfresco forums (https://forums.alfresco.com/forum/developer-discussions/workflow/property-error-javascript-variables-10202015-2029) with my process definition and the errors i get :


org.activiti.engine.ActivitiException: Exception while invoking TaskListener: Exception while invoking TaskListener: 09200041 Failed to execute supplied script: 09200040 ReferenceError: "adwf_approveCount" n'est pas défini (AlfrescoJS#2)


and


org.activiti.engine.ActivitiException: Unknown property used in expression: ${adwf_approveCount < 2})



There is also a screenshot of the process diagram to help understand my process, wich is based on a Jeff Potts tutorial. To summarize, i would like to learn efficiently how to declare, use and reuse this kind of approbation count variables in my processes to route documents towards the correct user or group of users.
iam kinda lost and would gladly welcome some help! Thank you!

Outcomes