can not transfer task property to next task

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-29-2009 07:12 AM
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.
<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.
Labels:
- Labels:
-
Archive
2 REPLIES 2

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-30-2009 03:21 AM
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.
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.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-31-2009 09:45 PM
Thanks for posting this resolution. I was having the same problem.
