Oracle Workflow Guide Release 2.6.2 Part Number A95265-03 |
Contents | Index | Glossary | Master Index | Feedback |
function GetAttrText
(nid in number,
aname in varchar2)
return varchar2;
function GetAttrNumber
(nid in number,
aname in varchar2)
return number;
function GetAttrDate
(nid in number,
aname in varchar2)
return date;
Java Syntax
public static String getAttrText
(WFContext wCtx,
BigDecimal nid,
String aName)
public static BigDecimal getAttrNumber
(WFContext wCtx,
BigDecimal nid,
String aName)
public static String getAttrDate
WFContext wCtx,
BigDecimal nid,
String aName)
Description
Returns the value of the specified message attribute.
Arguments (input)
wCtx | Workflow context information. Required for the Java method only. See: Oracle Workflow Context. |
nid | The notification id. |
aname | The message attribute name. |
The following code excerpt shows an example of how to call the getAttribute methods in a Java program. The example code is from the WFTest.java program.
// we get the value according to the type.
if (myAttrType == "DATE")
{
value = WFNotificationAPI.getAttrDate(ctx, myNid, myAttr);
}
else if (myAttrType == "NUMBER")
{
value = (WFNotificationAPI.getAttrNumber(ctx, myNid,
myAttr)).toString();
}
else if (myAttrType == "DOCUMENT")
{
value = WFNotificationAPI.getAttrDoc(ctx, myNid, myAttr,
null);
}
else
value = WFNotificationAPI.getAttrText(ctx, myNid, myAttr);
System.out.println(myAttr.toString() + " = '" + value +
"'");
Previous | Next | Contents | Index | Glossary |