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
Workflow scripting: any way of knowing which transition is running OnExit?
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
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
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
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)
Copyright © 2025 Liferay, Inc
• Privacy Policy
Powered by Liferay™