Update task workflow property inside a scriptTask
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-22-2014 11:00 AM
Hi,
In my workflow (developped with Activiti), I just want to implement a TimerEvent on a UserTask.
After 15 days, I want this TimerEvent to call a ScriptTask.
In this ScriptTask, I just try to update the "priority" property of my UserTask and set it to 1 (high).
Can someone help me please? I can't find what to write inside my ScriptTask…
Thanks in advance
In my workflow (developped with Activiti), I just want to implement a TimerEvent on a UserTask.
After 15 days, I want this TimerEvent to call a ScriptTask.
In this ScriptTask, I just try to update the "priority" property of my UserTask and set it to 1 (high).
Can someone help me please? I can't find what to write inside my ScriptTask…
Thanks in advance
Labels:
- Labels:
-
Archive
2 REPLIES 2
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-22-2014 12:16 PM
<serviceTask id="yourscripttask" name="your script task" activiti:class="org.alfresco.repo.workflow.activiti.script.AlfrescoScriptDelegate"> <extensionElements> <activiti:field name="script"> <activiti:string> var taskId = "activiti$yourscripttask";//where yourscripttask is the task id you defined in serviceTask id="yourscripttask" var taskInstance = workflow.getTask(taskId); taskInstance.priority=***; //or just use direclty taskInstance.priority=***; </activiti:string> </activiti:field> </extensionElements></serviceTask>
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-23-2014 02:35 AM
Thank you!
