How to Set Task Assignees from a Dynamic Delimited String in BPEL Human Task

In a scenario in which the assignees are represented as a delimited string (for example, a comma-separated string), the delimited string must be converted to a node set to set the task assignees from it. For this purpose, you can use orcl:create-nodeset-from-delimited-string. The arguments for this function are as follows:

  • QName in which each node in the node set must be created. The QName can be represented in two forms:   (1) task:assignee and (2) {http://mytask/task}assignee
  • Delimited string

The delimiter used to delimit the string, which can be , (comma) or ; (semicolon), for example.

For example, the BPEL variable inputVariable, part payload, and query /client:TestExtensionFunctionProcessRequest/client:input represent the assignees in a comma-separated format (example,jcooper,jstein,wfaulk) and this comma-separated list contains the assignees of the task. This string cannot be used as-is to set the task assignees because the task assignees are expected to be a node set. To set the assignees, select the dynamic assignment in the task assignees page, as shown and set it to

orcl:create-nodeset-from-delimited-string(‘task:assignee’,
bpws:getVariableData(‘inputVariable’,’payload’,
‘/client:TestExtensionFunctionProcessRequest/client:input’), ‘,’)

By this you can pass the assignees dynamically with a delimiter.

Advertisements
This entry was posted in BPEL, Service Oriented Architecture (SOA 11g) and tagged , , , , , , , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s