Thursday, 14 November 2013

Working with Timer Nodes

TIMER NODES PRESENT IN WMB ARE :
1.TIMER NOTIFICATION NODE,
2.TIMER CONTROL.

WE CAN USE TIMER NOTIFICATION NODE INDEPENDENTLY BUT WHEN WE USE TIMER CONTROL NODE  WE SHOULD USE TIMER NOTIFICATION NODE.

WE CAN USE  TIMER NOTIFICATION NODE WITH MULTIPLE TIMER CONTROL NODES.(i.e ONE  TIMER NOTIFICATION NODE AND ONE OR MORE TIMER CONTROL NODES.)

WHEN WE USE  TIMER NOTIFICATION WITH  TIMER CONTROL  "UNIQUE IDENTIFIER" SHOULD BE COMMON WHICH IS COMMON PROPERTY FOR TIMER NOTIFICATION AND  TIMER CONTROL NODES.

SAMPLE OF  TIMER NOTIFICATION SCENARIO
Properties for the nodes:-
MQInput,MQOutput  :-The properties for this nodes  are as usual.

TimeOutControl:-
TimeOutNotification:-
Set the operation mode as controlled to establish a connection between TimeOutControl and TimeOutNotification.

Compute Node:-

Input Message:-

<EmpDetails>
<TimeoutRequest>
 <Action>SET</Action>
 <Identifier>ThreeTimes</Identifier>
 <StartDate>TODAY</StartDate>
 <StartTime>NOW</StartTime>
 <Interval>5</Interval>
 <Count>3</Count>
 <IgnoreMissed>TRUE</IgnoreMissed>
 <AllowOverwrite>TRUE</AllowOverwrite>
</TimeoutRequest>
<Emp>
 <EmpName>EddieNorton</EmpName>
 <EmpID>9966</EmpID>
 <EmpAge>31</EmpAge>
 <EmpSex>M</EmpSex>
 <EmpDoj>05/26/1999</EmpDoj>
</Emp>
</EmpDetails>

This message can also be taken as the below but the main thing is that some of the tag names must be given with same tag names to make the Timer node to have its functionality in a proper way.
<EmpDetails>
<Emp>
 <Action>SET</Action>
 <Identifier>ThreeTimes</Identifier>
 <StartDate>TODAY</StartDate>
 <StartTime>NOW</StartTime>
 <Interval>5</Interval>
 <Count>3</Count>
 <IgnoreMissed>TRUE</IgnoreMissed>
 <AllowOverwrite>TRUE</AllowOverwrite>
 <EmpName>EddieNorton</EmpName>
 <EmpID>9966</EmpID>
 <EmpAge>31</EmpAge>
 <EmpSex>M</EmpSex>
 <EmpDoj>05/26/1999</EmpDoj>
</Emp>
</EmpDetails>
According to the above messages the message will be sent to the Output Queue for every  5 seconds and for 3 times.

No comments:

Post a Comment