Hi
I'm trying to get the tasks assigned to user and its transitions in a jsp . I used the following code
String taskQueryStr = " ";
CSWorkflowEngine workflowEngine = client.getWorkflowEngine(); CSTask[] tasks = workflowEngine.getTasksByQuery(taskQueryStr); for(CSTask task:tasks){ out.println("task ID"+task.getId()+" task Name "+task.getName());
CSTransitionableTask t=(CSTransitionableTask)task; String[] transitions=t.getTransitions(); logger.debug("transitions length :"+transions.length); for(String str:transitions){ logger.debug("inside for"); logger.debug(str);
} }
|
I can able to get the tasks and looping through the transitions but it is not printing the transition name . When I tried to find the length of the transition name it is returning as zero.
Is there any other way to get the transitions ?
TS 7.2.1
Solaris 10