cancel
Showing results for 
Search instead for 
Did you mean: 

SET TASK NAME AND DESCRIPTION DYNAMICALLY FROM THE bpmn20.xml FILE

chilopoda
Champ in-the-making
Champ in-the-making
Greetings good people!

I have a requirement to allow the user to dynamically change the existing task name and task description.
So far from this post: http://forums.activiti.org/content/list-all-user-tasks-bpm-file-0 , I'm able to list all the tasks in the bpmn20.xml file.  I'm only able to see type and name of the respective tasks and no task description.
Anyone with idea on how to change the task name displayed here?
I also checked on this post: http://www.manning-sandbox.com/thread.jspa?threadID=48416 which recommends using SaveTask() method but seems this method only saves the task id and not the new task name.

Any help is highly appreciated.
2 REPLIES 2

trademak
Star Contributor
Star Contributor
Hi,

You should be able to update the task name like this:

<blockcode>
task.setName("Update name");
taskService.saveTask(task);
</blockcode>

Best regards,

chilopoda
Champ in-the-making
Champ in-the-making
Hi trademak,
Thanks for your quick response. Let me give it a shot.
Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.