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
 

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

All Rights Reserved.