Oracle Workflow Guide
Release 2.6.2
Part Number A95265-03 |
|
getActivityAttr
Java Syntax
public WFAttribute getActivityAttr
(String aName)
Java Syntax
public WFAttribute getActivityAttr
(WFContext pWCtx,
String aName) throws SQLException
Description
There are two implementations of getActivityAttr(). These methods return the activity attribute information for the specified activity attribute.
- If you call getActivityAttr(String aName) with only the activity attribute name, this method returns the activity attribute value but does not attempt to resolve any reference to an item attribute. If an activity attribute does point to an item attribute, this method returns the internal name of the item attribute. With the item attribute name, you can then perform additional processing based on the item attribute.
- For example, if you want to write information back to the item attribute, you can first use getActivityAttr(String aName) to retrieve the item attribute name. Then use setItemAttrValue(WFContext pWCtx, WFAttribute pAttr) to set the item attribute value, which also becomes the activity attribute value. See: setItemAttrValue.
- If you call getActivityAttr(WFContext pWCtx, String aName) with both the Workflow context and the activity attribute name, this method returns the activity attribute, and if the activity attribute points to an item attribute, the method attempts to resolve the reference by retrieving the value of that item attribute. You can use getActivityAttr(WFContext pWCtx, String aName) when you want to obtain the actual activity attribute value, and you do not need to know which item attribute it references. This method attempts to resolve the reference within the previously loaded item attributes, or if the item attributes have not been loaded, the method calls loadItemAttributes(WFContext pWCtx) to load them. See: loadItemAttributes.
- If a database access error occurs, this method throws a SQLException.
Arguments (input)
pWCtx |
Workflow context information. Required for the second method only. See: Oracle Workflow Context.
|
aName |
The internal name of an activity attribute.
|
|
Copyright © 1996, 2002 Oracle Corporation.
All Rights Reserved.