Previous Next       Contents Index Glossary
         Previous  Next          Contents  Index  Glossary

SetItemAttribute

PL/SQL Syntax

procedure SetItemAttrText

    (itemtype in varchar2,
itemkey in varchar2,
aname in varchar2,
avalue in varchar2);

procedure SetItemAttrNumber
(itemtype in varchar2,
itemkey in varchar2,
aname in varchar2,
avalue in number);

procedure SetItemAttrDate
(itemtype in varchar2,
itemkey in varchar2,
aname in varchar2,
avalue in date);

procedure SetItemAttrEvent
(itemtype in varchar2,
itemkey in varchar2,
name in varchar2,
event in wf_event_t);

Java Syntax

public static boolean setItemAttrText

    (WFContext wCtx,
String itemType,
String itemKey,
String aName,
String aValue)

public static boolean setItemAttrNumber

    (WFContext wCtx,
String itemType,
String itemKey,
String aName,
BigDecimal aValue)

public static boolean setItemAttrDate

    (WFContext wCtx,
String itemType,
String itemKey,
String aName,
String aValue)

Description

Sets the value of an item type attribute in a process. Use the correct procedure for your attribute type. All attribute types except number, date, and event use SetItemAttrText.

Attention: If you need to set the values of large numbers of item type attributes at once, use the SetItemAttributeArray APIs rather than the SetItemAttribute APIs for improved performance. See: SetItemAttributeArray

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 process. See: CreateProcess.

Note: You can pass #SYNCH as the itemkey to create a forced synchronous process. See: Forced Synchronous Processes.

aname The internal name of the item type attribute, for SetItemAttrText(), SetItemAttrNumber(), and SetItemAttrDate().
avalue The value for the item type attribute, for SetItemAttrText(), SetItemAttrNumber(), and SetItemAttrDate().
name The internal name of the item type attribute, for SetItemAttrEvent().
event The value for the item type attribute, for SetItemAttrEvent().

See Also

Event Message Structure


         Previous  Next          Contents  Index  Glossary