cancel
Showing results for 
Search instead for 
Did you mean: 

can not transfer task property to next task

zzyyqq1
Champ in-the-making
Champ in-the-making
i searched ways and methods to fill in some parameters/properties in the current task, and display it in read only in the next task;what i did is something like the below code:
<variable name="wf_cause" access="read,write" mapped-name="wf_cause" />
executionContext.getContextInstance().setVariable("wf_cause","123456");
taskinstance.properties["wf:cause"]="cccccccc";


unfortunately, none of them can work, i am so despairing  as i can not make it work.

BTW:
  the common property is defined in the aspect, even not defined in aspect can not work either. the version i am using now is community 3.2.
your support is greatly appreciated.
2 REPLIES 2

zzyyqq1
Champ in-the-making
Champ in-the-making
my issue resolved by following this instruction:
http://anipossible3.blogspot.com/2007/09/alfresco-workflow-model-setup-features.html

Thanks a lot.

i found out the root cause now, it is caused by default property in model definition:
           <property name="vacation:duration">
                <title>duration</title>
                <type>d:text</type>
                <mandatory>false</mandatory>
                <default>duration1111111</default>              
               </property>
after remove  <default>duration1111111</default>  , the issue completely resolved.

min
Champ in-the-making
Champ in-the-making
Thanks for posting this resolution.  I was having the same problem.