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
 

ItemStatus

PL/SQL Syntax

procedure ItemStatus

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

Java Syntax

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

All Rights Reserved.