How do we get the next task Id of a User Input Task. This has to be entered in t

How do we get the next task Id of a User Input Task. This has to be entered in the Send Email Smart Service which is triggered before the User Input Task? Is there any such Out Of The Box function?...

OriginalPostID-114894

OriginalPostID-114894

  Discussion posts and replies are publicly visible

Parents
  • Sure! Actually for any ResultPage you just need to look at the API Docs to determine what cast you need. Since according to the Java Docs the getCurrentTasksForProcess returns a ResultPage of TaskSummary objects you just need to call its getResults() method and then cast that to an array of TaskSummary

    TaskSummary[] currentTasksForProcess = (TaskSummary[])currentTasksForProcessResultPage.getResults();
Reply
  • Sure! Actually for any ResultPage you just need to look at the API Docs to determine what cast you need. Since according to the Java Docs the getCurrentTasksForProcess returns a ResultPage of TaskSummary objects you just need to call its getResults() method and then cast that to an array of TaskSummary

    TaskSummary[] currentTasksForProcess = (TaskSummary[])currentTasksForProcessResultPage.getResults();
Children
No Data