Skip Headers

Oracle Workflow API Reference
Release 2.6.3

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

SetAttribute

PL/SQL Syntax

procedure SetAttrText

(nid in number,
aname in varchar2,
avalue in varchar2);

procedure SetAttrNumber
(nid in number,
aname in varchar2,
avalue in number);

procedure SetAttrDate
(nid in number,
aname in varchar2,
avalue in date);

Java Syntax

public static boolean setAttrText

(WFContext wCtx,
BigDecimal nid,
String aName,
String aValue)

public static boolean setAttrNumber
(WFContext wCtx,
BigDecimal nid,
String aName,
BigDecimal aValue)

public static boolean setAttrDate
WFContext wCtx,
BigDecimal nid,
String aName,
String aValue)

Description

Used at both send and respond time to set the value of notification attributes. The notification agent (sender) may set the value of SEND attributes. The performer (responder) may set the value of RESPOND attributes.

Arguments (input)

wCtx Workflow context information. Required for the Java method only. See: Oracle Workflow Context.
nid The notification ID.
aname The attribute name.
avalue The attribute value.
Example

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

if (WFNotificationAPI.setAttrDate(ctx, myNid, myAttr, value)
== false)
{
System.out.println("set attribute " + myAttr + " to " +
value + " failed.");
}

         Previous  Next          Contents  Index  Glossary


Oracle Logo
Copyright © 2003 Oracle Corporation.

All rights reserved.