Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
to get the workflow task id
Hi all
How can i get the workflow workflow task id in liferay for a particular user???
Regards
Kannan
How can i get the workflow workflow task id in liferay for a particular user???
Regards
Kannan
Hi Kannan--
Something like
int start = -1;
int end = -1;
OrderByComparator taskComp = WorkflowComparatorFactoryUtil.getTaskCreateDateComparator(true);
List<WorkflowTask> userTasks = WorkflowTaskManagerUtil.getWorkflowTasksByUser(companyId, userId, completed, start, end, taskComp ) ;
should do it.
--Henry
Something like
int start = -1;
int end = -1;
OrderByComparator taskComp = WorkflowComparatorFactoryUtil.getTaskCreateDateComparator(true);
List<WorkflowTask> userTasks = WorkflowTaskManagerUtil.getWorkflowTasksByUser(companyId, userId, completed, start, end, taskComp ) ;
should do it.
--Henry