RE: workflow

thumbnail
ali yeganeh, modified 6 Years ago. Regular Member Posts: 148 Join Date: 5/1/19 Recent Posts
Hi
How in workflow can I assign a task to the relevant role?
using groovy script in Single Approver
thumbnail
Amos Fong, modified 6 Years ago. Liferay Legend Posts: 2047 Join Date: 10/7/08 Recent Posts
thumbnail
Russell Bohl, modified 6 Years ago. Expert Posts: 308 Join Date: 2/13/13 Recent Posts
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