Working with Attributes:
1.
Create Attributes with data
type.
2.
Drag the attribute below
the Message, where we want to use this attribute in the Message.
3.
Call the attributes default
or dynamic in the message using their Internal names with ‘&’ prefix.
Static values assigned to Attributes.
If we want to assign the dynamic values to attributes then:
1.
Assigning Attributes
dynamically:
BEGIN
WF_ENGINE.createProcess(itemtype =>'ATTR_WF',
itemkey =>'10',
process => 'ATTR_PROC' ,
user_key => 'A',
owner_role => 'OPERATIONS');
WF_ENGINE.SETITEMATTRTEXT(itemtype => 'ATTR_WF',
itemkey =>'10',
aname => 'ATTR1',
avalue => 'VALUE ASSIGNED THROUGH API' );
WF_ENGINE.SETITEMATTRDATE(itemtype => 'ATTR_WF',
itemkey =>'10',
aname => 'DATE_ATTR',
avalue => SYSDATE + 10 );
WF_ENGINE.SETITEMATTRNUMBER(itemtype => 'ATTR_WF',
itemkey =>'10',
aname => 'ATTR2',
avalue => 98765 );
WF_ENGINE.STARTPROCESS(itemtype => 'ATTR_WF',
itemkey => '10');
end;
To download the wtf: https://www.dropbox.com/s/va61fe0eu7zo1zh/3_Working_with_Attributes.wft?dl=0
No comments:
Post a Comment