Skip Headers

Oracle Workflow API Reference
Release 2.6.3

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

ItemStatus

PL/SQL Syntax

procedure ItemStatus

(itemtype in varchar2,
itemkey in varchar2,
status out varchar2,
result out varchar2);

Java Syntax

public static WFTwoDArray itemStatus

(WFContext wCtx,
String itemType,
String itemKey)

Description

Returns the status and result for the root process of the specified item instance. Possible values returned for the status are: ACTIVE, COMPLETE, ERROR, or SUSPENDED. If the root process does not exist, then the item key does not exist and will thus cause the procedure to raise an exception.

Arguments (input)

wCtx Workflow context information. Required for the Java method only. See: Oracle Workflow Context.
itemtype A valid item type.
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 item instance.
Example

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

// get status and result for this item
dataSource = WFEngineAPI.itemStatus(ctx, iType, iKey);
System.out.print("Status and result for " + iType + "/" +
iKey + " = ");
displayDataSource(ctx, dataSource);

         Previous  Next          Contents  Index  Glossary


Oracle Logo
Copyright © 2003 Oracle Corporation.

All rights reserved.