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
Manage Exception when scrip Groovy fail in Kaleo
Hi people,
Please I need your guru Kaleo experience. In some cases for both business errors and unexpected errors, the script writed for "task" or "join" nodes launchs exceptions. The idea is that the article return to initial state (created) when that happens.
I tried putting code like
try {
} catch (Exception e) {
WorkflowStatusManagerUtil.updateStatus(WorkflowConstants.toStatus("draft"), workflowContext);
}
But it doesn't work.
So what is your advice or best practice for those sceneries.
Thanks in advance
Please I need your guru Kaleo experience. In some cases for both business errors and unexpected errors, the script writed for "task" or "join" nodes launchs exceptions. The idea is that the article return to initial state (created) when that happens.
I tried putting code like
try {
} catch (Exception e) {
WorkflowStatusManagerUtil.updateStatus(WorkflowConstants.toStatus("draft"), workflowContext);
}
But it doesn't work.
So what is your advice or best practice for those sceneries.
Thanks in advance
Copyright © 2025 Liferay, Inc
• Privacy Policy
Powered by Liferay™