In @ananya-chatterjee-oracle 's blog post “Custom Plugins for non-sequential steps in APEX Workflow” she provides an excellent example of how to use a plug-in with Apex 23.2 workflow but the task in the example has a hard-coded static value of user JANE for the potential owner. How can I have a variable there like &TASK_OWNER. and have the plugin populate :TASK_OWNER in the source code?
My workflow is set up to populate a comma-separated list of usernames in a workflow variable USER_LIST. When calling the plug-in, I'm able to split the USER_LIST into an apex_t_varchar2 and loop through it and want to create a task for each user.
The apex_approval.create_task function does not have an entry for potential owner and I don't know what variable to set in the plug-in source code so the task potential owner can pick it up.