AnsweredAssumed Answered

cutom field value propagation

Question asked by ayubalfresco on Mar 10, 2013
I have defined a custom form field in my model as demo:caseNumber

when the workflow transitions this field does not get populated from previouly submitted task.

below is how I am trying to set the variables



<activiti:taskListener event="complete"
class="org.alfresco.repo.workflow.activiti.tasklistener.ScriptTaskListener">
<activiti:field name="script">
<activiti:string>execution.setVariable('demo_caseNumber',task.getVariable('demo_caseNumber'));</activiti:string>
</activiti:field>



<field-visibility>
<show id="bpm:workflowDescription" />
<show id="packageItems" />
<show id="demo:caseNumber" />
<show id="transitions" />
</field-visibility>


could some one point why when  casenumber is populated in the initial form and the workflow transitions to next task I do not see the previouly populated value.

Outcomes