How to get taskId by contentId?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-17-2007 05:32 AM
Hello,
I learn the wiki "Adding a Custom Dialog", and I want to custom a action that I could see the workflow history in the browse.jsp.
My action code is like the "ManageTaskDialog.java".But I find I can't get the taskId,I just get the id of content.
How I could get the taskId ?Whether has a nother way to do?
I learn the wiki "Adding a Custom Dialog", and I want to custom a action that I could see the workflow history in the browse.jsp.
My action code is like the "ManageTaskDialog.java".But I find I can't get the taskId,I just get the id of content.
How I could get the taskId ?Whether has a nother way to do?
Labels:
- Labels:
-
Archive
4 REPLIES 4
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-20-2007 09:52 AM
ManageTaskDialog.java is dealing with tasks whereas browse.jsp is displaying content. In order to show workflow history you'll need to get hold of the task that is associated with each content item, to do this you'll need to find the workflows that that content is currently involved in.
Have a look at renderAdvancedWorkflowInfo() in UINodeWorkflowInfo for an example of retrieving workflow info for an arbitary content item.
Have a look at renderAdvancedWorkflowInfo() in UINodeWorkflowInfo for an example of retrieving workflow info for an arbitary content item.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-20-2007 10:07 PM
Great.
Thanks gavinc.That's helpfull.
Thanks gavinc.That's helpfull.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-27-2007 05:54 AM
Hi, gavic.
I have met another problem.When my workflow finished ,I find I could not get the tasks.How did I do?
I have met another problem.When my workflow finished ,I find I could not get the tasks.How did I do?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-03-2007 07:10 AM
Once a task is completed the task gets marked as completed and the workflow is marked as non-active.
To retrieve the details of a workflow that has completed you need to use slightly different parameters i.e. to get a list of completed tasks you use:
Hope this helps.
To retrieve the details of a workflow that has completed you need to use slightly different parameters i.e. to get a list of completed tasks you use:
List<WorkflowTask> tasks = this.workflowService.getAssignedTasks( userName, WorkflowTaskState.COMPLETED);
Hope this helps.