Event-Raise Tasks
The Event-Raise task represents the location of a user-defined event. A user-defined event is the sequence of tasks in the branch from the Start task to the Event-Raise task. When the Integration Service runs the Event-Raise task, the Event-Raise task triggers the user-defined event.
To use an Event-Raise task, you must first declare the user-defined event. Then, create an Event-Raise task in the workflow to represent the location of the user-defined event you just declared. In the Event-Raise task properties, specify the name of a user-defined event.
Sample Scenario:A Workflow having 4 session which needs to run as below:session 1 and session 2 needs to run Parallel/concurrently, session 3 should run on completion/success of session 1 and the session 4 should run on completion/success of session 2 & session 3.
Note: As session 2 and session 4 are connected sequentially, so it run once session 2 is completed. So we have to hold it until session 3 gets completed. To do what we need to have a event wait between session 2 & session 4 and a event raise after session 3 to trigger event wait.
Steps:
1. Create a workflow with required sessions (Session 1, Session 2, Session 3 & Session 4).
2. Edit workflow properties --> go to Events Tab. Create a event "RunSession4".
3. Connect Start task with Session 1 and Session 2 concurrently
4. Connect Session 1 with Session 3
5. From Menu, select Tasks --> Create --> Event Raise and Entry the Name for it "EventRaise"
6. Connect Session 3 with EventRaise Task, Then Edit it and go to properties Tab. To select Event Created at workflow properties in Step 2.
7. From Menu, select Tasks --> Create --> Event Wait and Entry the Name for it "EventWait"
8. Connect Session 2 with EventWait, Edit EventWait and go to properties --> Event Tab.
Under "User Defined" select Event Created at Step 2 by click on browse Event Button.
9. Connect EventWait with Session 4.
10. Save the workflow before you run this workflow.
Note: When you use EventWait with EventRaise we dont need any filewatche.
0 comments:
Post a Comment