Change a workflow task description dynamically?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-02-2007 02:49 PM
How would one go about changing the task description dynamically? I would like to append the content name (bpm_package.children[0].name) to the task node description so it is easier to identify in the "My Tasks to Do" dashlet.
It does not appear that the bpm_workflowTask property is exposed in the Javascript API. If not, how could I access the task description via a Java action?
Thanks.
It does not appear that the bpm_workflowTask property is exposed in the Javascript API. If not, how could I access the task description via a Java action?
Thanks.
Labels:
- Labels:
-
Archive
3 REPLIES 3

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-03-2007 05:46 AM
There's an example of this in the 2.1 wcm submit process…
<task name="wcmwf:reviewTask"> <assignment class="org.alfresco.repo.workflow.jbpm.AlfrescoAssignment"> <actor>#{bpm_assignees.get(wcmwf_approveCnt)}</actor> </assignment> <event type="task-assign"> <script> if (wcmwf_reviewCycle > 1) taskInstance.description = taskInstance.description + " (" + wcmwf_reviewCycle + ")"; </script> </event> </task>
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-03-2007 01:10 PM
Thanks David!
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-28-2011 11:17 AM
Then how do you get a handle to the workflow so you can change its description?
(I want to create a standalone JavaScript that changes one workflow's description.)
Thanks!
(I want to create a standalone JavaScript that changes one workflow's description.)
Thanks!
