Oracle Workflow API Reference Release 2.6.3.5 Part Number B12163-02 |
Previous | Next | Contents | Index | Glossary |
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. |
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 |