UserTask Follow Up Date
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-22-2015 05:24 PM
I am wondering how is possible to add followUpDate attribute to some element in background, because class UserTask.java does not contains this attribue (there is only dueDate attribute).
What I want:
Code behind - where I want to set this attribute:
How can I achive that?
<userTask id="task2" name="Name2" activiti:assignee="demo" activiti:dueDate="2015-05-01" followUp></userTask>
What I want:
<userTask id="task2" activiti:assignee="demo" activiti:followUpDate="2015-04-01" activiti:dueDate="2015-05-01" name="Name2">
Code behind - where I want to set this attribute:
UserTask userTask = new UserTask(); userTask.setName("Name2"); userTask.setId("task2"); userTask.setAssignee(assignee); userTask.setDueDate("2015-05-01"); //HOW TO SET ATTRIBUTE followUpDate?
How can I achive that?
Labels:
- Labels:
-
Archive
3 REPLIES 3
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-23-2015 02:13 AM
Hi,
exactly as you propose. Use extension elements (e.g. activiti:followUpDate) to extend process model.
You can get extension element value from
Regards
Martin
exactly as you propose. Use extension elements (e.g. activiti:followUpDate) to extend process model.
You can get extension element value from
org.activiti.bpmn.model.BaseElement#extensionElements
Regards
Martin
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-23-2015 02:54 AM
Thank you for your reply.
Can you please give me some example how to add new attribute to usertask in Java code? I would greatly appreciate it.
Kind regards
Can you please give me some example how to add new attribute to usertask in Java code? I would greatly appreciate it.
Kind regards
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-24-2015 02:35 AM
Hi,
e.g.
Regards
Martin
e.g.
org.activiti.engine.test.bpmn.event.end.TerminateEndEventTest#testParseTerminateEndEventDefinitionWithExtensions
in activiti source.Regards
Martin
