Skip to Main Content

APEX

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Dynamic Task Owner in 23.2 Workflow Using a Plug-in

Dave MoehrkeApr 24 2024 — edited Apr 24 2024

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.

This post has been answered by Karel Ekema on Apr 24 2024
Jump to Answer
Comments
Post Details
Added on Apr 24 2024
5 comments
607 views