Oracle Workflow Guide
Release 2.6.2

Part Number A95265-03
  Go to previous page Go to next page       Go To Table Of Contents Go To Index Go To Table Of Contents

                     Contents  Index  Glossary Master Index Feedback
 

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
Copyright © 1996, 2002 Oracle Corporation.

All Rights Reserved.