Skip Headers

Oracle Workflow API Reference
Release 2.6.3.5

Part Number B12163-02
Previous Next       Contents Index Glossary
         Previous  Next          Contents  Index  Glossary

SetItemOwner

PL/SQL Syntax

procedure SetItemOwner

    (itemtype in varchar2,
itemkey in varchar2,
owner in varchar2);

Java Syntax

public static boolean setItemOwner

    (WFContext wCtx,
String itemType,
String itemKey,
String owner)

Description

A procedure to set the owner of existing items. The owner must be a valid role. Typically, the role that initiates a transaction is assigned as the process owner, so that any participant in that role can find and view the status of that process instance in the Workflow Monitor.

Arguments (input)

wCtx Workflow context information. Required for the Java method only. See: Oracle Workflow Context.
itemtype A valid item type. Item types are defined in the Workflow Builder.
itemkey A string derived 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 new process and must be passed to all subsequent API calls for that process.
owner A valid role.
Example

The following code excerpt shows an example of how to call setItemOwner() in a Java program. The example code is from the WFTest.java program.

// set item owner
if (WFEngineAPI.setItemOwner(ctx, iType, iKey, owner))
System.out.println("Set Item Owner: "+owner);
else
{
System.out.println("Cannot set owner.");
WFEngineAPI.showError(ctx);
}


         Previous  Next          Contents  Index  Glossary



Oracle Logo
Copyright © 2003, 2004, Oracle. All rights reserved.