procedure SetItemParent (itemtype in varchar2, itemkey in varchar2, parent_itemtype in varchar2, parent_itemkey in varchar2, parent_context in varchar2);
public static boolean setItemParent (WFContext wCtx, String itemType, String itemKey, String parentItemType, String parentItemKey, String parentContext)
Defines the parent/child relationship for a master process and a detail process. This API must be called by any detail process spawned from a master process to define the parent/child relationship between the two processes. You make a call to this API after you call the CreateProcess API, but before you call the StartProcess API for the detail process.
| wCtx | Workflow context information. Required for the Java method only. See: Oracle Workflow Context. |
| itemtype or itemType | A valid item type. |
| itemkey or itemKey | A string generated from the application object's primary key. The string uniquely identifies the item within an item type. The item type and key together identify the child process.
Note: The item key for a process instance can only contain single-byte characters. It cannot contain a multibyte value. |
| parent_itemtype or parentItemType | A valid item type for the parent process. |
| parent_itemkey or parentItemKey | A string generated from the application object's primary key to uniquely identify the item within the parent item type. The parent item type and key together identify the parent process.
Note: The item key for a process instance can only contain single-byte characters. It cannot contain a multibyte value. |
| parent_context or parentContext | You can leave the parent context null if the parent process contains only one Wait for Flow activity, or if the parent process contains multiple Wait for Flow activities and this detail process includes a Continue Flow activity for every Wait for Flow activity in the parent process. If the parent process contains multiple Wait for Flow activities and this detail process only includes a Continue Flow activity for one of those Wait for Flow activities, set this parameter to the activity label name for the Wait for Flow activity node to which this detail process corresponds. |