Task without Process

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-07-2011 03:09 AM
As per the javadoc
Is there a means to retrieve ONLY tasks not associated with any process?
I tried
but neither of them seem to work for me.
[b]newTask[/b]Task newTask()Creates a new task that is not related to any process instance. The returned task is transient and must be saved with saveTask(Task) 'manually'.
Is there a means to retrieve ONLY tasks not associated with any process?
I tried
taskService.createTaskQuery().processInstanceId(null).taskAssignee(userId)taskService.createTaskQuery().processInstanceId("").taskAssignee(userId)
but neither of them seem to work for me.
Labels:
- Labels:
-
Archive
2 REPLIES 2
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-07-2011 03:30 AM
you must save new Task with one of your process Instances and after this work you can work with this Task :
engine.getTaskService().saveTask(Task);

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-07-2011 03:46 AM
I am saving the task. I can see it in the database.
But on retrieving it , it comes along with the processes associated tasks. I would like to retrieve the NON-PROCESS associated tasks separately.
Regards,
Franklin
But on retrieving it , it comes along with the processes associated tasks. I would like to retrieve the NON-PROCESS associated tasks separately.
Regards,
Franklin
