Workflow scripting: any way of knowing which transition is running OnExit?

thumbnail
Fernando Fernandez, modified 5 Years ago. Expert Posts: 401 Join Date: 8/22/07 Recent Posts
Hi guys,
I'm groovy scripting a task OnExit action and would like to know what transition the user has chosen.
It seems it's not included in the workflowContext object (LR 6.2 CE).
Any ideas on how to get the user choice?
TIA
Fernando
thumbnail
Mohammed Yasin, modified 5 Years ago. Liferay Master Posts: 593 Join Date: 8/8/14 Recent Posts
Hi,
You can try WorkflowLogManagerUtil and get the Logs of what all user is done , for specific LogType may be u can pass logTypes as  below types
ACTION_EXECUTION, NODE_ENTRY, NODE_EXIT, TASK_ASSIGNMENT, TASK_COMPLETION,
    TASK_UPDATE, WORKFLOW_INSTANCE_END, WORKFLOW_INSTANCE_START 
 WorkflowLogManagerUtil.getWorkflowLogsByWorkflowInstance(companyId, workflowInstanceId, logTypes, start, end, orderByComparator)