Having trouble getting task info in Java Delegate
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-02-2014 11:33 AM
I have a user task with a boundary timer. When the timer fires, the process goes to a service task, which calls a java delegate class.
In the java delegate class, I need access to the task name and task id for the user task (the one with the boundary timer). I must be missing something, but I cannot find a way to get this information using the DelegateExecution in the execute() method.
Seems like this should be pretty simple to do, but I'm new to Activiti and need some guidance. What's the easiest way to do this? Is there a way to get the DelegateTask for that user task?
In the java delegate class, I need access to the task name and task id for the user task (the one with the boundary timer). I must be missing something, but I cannot find a way to get this information using the DelegateExecution in the execute() method.
Seems like this should be pretty simple to do, but I'm new to Activiti and need some guidance. What's the easiest way to do this? Is there a way to get the DelegateTask for that user task?
Labels:
- Labels:
-
Archive
3 REPLIES 3

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-06-2014 10:22 AM
You can look it up in the history api of Activiti. From there you can retrieve all the activities that have been executed.
Best regards,
Best regards,
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-06-2014 03:59 PM
Thank you. This was very helpful.
I actually decided to use TaskQuery, but it was your suggestion that showed my the way.
I actually decided to use TaskQuery, but it was your suggestion that showed my the way.

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-08-2014 01:28 PM
I feel something simple like pass variables to next task is missing from Activiti.
You can set process instance variable but that impacts everyone and conflicts when you have parallel executions.
You can set process instance variable but that impacts everyone and conflicts when you have parallel executions.
