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
RE: workflow
Hi
How in workflow can I assign a task to the relevant role?
using groovy script in Single Approver
How in workflow can I assign a task to the relevant role?
using groovy script in Single Approver
Try checking out the documentation here:https://portal.liferay.dev/docs/7-2/reference/-/knowledge_base/r/workflow-task-nodes#assignments
Yes, read through those reference docs as Amos pointed out.
If you really need to do it via a script, check out this blog entry: https://liferay.dev/blogs/-/blogs/workflow-scripting-programmatic-task-assignment-1
And the official docs on scripting in workflow: https://portal.liferay.dev/docs/7-2/user/-/knowledge_base/u/leveraging-the-script-engine-in-workflow
If you really need to do it via a script, check out this blog entry: https://liferay.dev/blogs/-/blogs/workflow-scripting-programmatic-task-assignment-1
And the official docs on scripting in workflow: https://portal.liferay.dev/docs/7-2/user/-/knowledge_base/u/leveraging-the-script-engine-in-workflow
Copyright © 2025 Liferay, Inc
• Privacy Policy
Powered by Liferay™