Professional Documents
Culture Documents
com +917411642061
Lab 22
Event Wait with PreDefined Event
BANGALORE TECHNICAL TRAININGS..........................1 Onlinetrainingsbglr@gmail.com.....................................1 +917411642061.................................................................1 Lab 22...............................................................................1 Lab at a Glance................................................................2 Objectives..............................................................2 Summary................................................................2 Duration.................................................................2 Exercises..........................................................................3 Exercise 1: Create Workflow with Event Wait Task 3
22 - 1
Lab at a Glance
The exercise in this lab is designed to walk the student through the process of creating an Event Wait task for a pre-defined event.
Objectives
After completing the lab, the student will be able to: Create an Event Wait task for a pre-defined event.
Summary
The Source flat file for s_m_ODS_ORDER_AMOUNT is received from remote locations at varying intervals. The ETL lead would like to setup a workflow that starts a session when the file arrives. Create an Event Wait task to watch for the source file. As soon as the source file appears, the session that uses the source file will run. The completed workflow should look as follows:
Duration
This lab should take approximately 10 minutes.
22 - 2
Exercises
Exercise 1: Create Workflow with Event Wait Task
Step 1. Create the workflow. Make a copy of wf_ODS_ORDER_AMOUNT_xx in the Studentxx folder. Change the workflow name to wf_ODS_ORDER_AMOUNT_EW_xx. Drag and drop wf_ODS_ORDER_AMOUNT_EW_xx into the Workflow Designer. Delete the link between the Start task and the s_m_ODS_ORDER_AMOUNT_xx task. Save the repository. Step 2. Create an event wait task. Create an Event Wait task and name it ew_ORDER_xx.
.
Edit ew_ORDER_xx and click on the Events tab. Select the Pre Defined radio button. Enter the following path: $PMSourceFileDir\ORDER.txt
22 - 3
Source filename
to ORDER.txt.
For the source SQ_PRODUCT, set the database connection to native_source. For the target ODS_ORDER_AMOUNT, set: Database connection to native_target_xx.
Target load type
Click OK.
Create a link between ew_ORDER_xx and s_m_ODS_ORDER_AMOUNT_xx. Step 5. Run the workflow and verify results. Save, validate and start wf_ODS_ORDER_AMOUNT_EW_xx.
Monitor and review the results for the session in the Workflow Monitor:
22 - 4