cancel
Showing results for 
Search instead for 
Did you mean: 

Adding descriptions to Tasks

dancrumb
Champ in-the-making
Champ in-the-making
The javadocs show that the Task class has a getDescription method (http://activiti.org/javadocs/org/activiti/engine/task/Task.html#getDescription())

Clearly, one could set this with the setDescription() method.

However, is there a way to include this description in the BPMN, such that it will be available in the ACT_RU_TASK table (and, thus, the Task object, whenever I have a reference to it?
1 REPLY 1

frederikherema1
Star Contributor
Star Contributor
Before posting in the forum, look in the user guide first:


A user task can have also a description. In fact any BPMN 2.0 element can have a description. A description is defined by adding the documentation element.

<userTask id="theTask" name="Schedule meeting" >
  <documentation>
          Schedule an engineering meeting for next week with the new hire.
  </documentation>
The description text can be retrieved from the task in the standard Java way:

task.getDescription()