In the following steps, you create a workflow with a non-reusable session to run the mapping you just created.
Verify that the Integration Service that runs the workflow can access the source XML file. Copy the Employees.xml file from the Tutorial folder to the $PMSourceFileDir directory for the Integration Service and rename it data.xml. Usually, this is the SrcFiles directory in the Integration Service installation directory.
Open the Workflow Manager.
Connect to the repository and open the tutorial folder.
Go to the Workflow Designer.
Click
Workflows
Wizard
.
The
Workflow Wizard
opens.
Name the workflow wf_EmployeeSalary and select a service on which to run the workflow. Then click
Next
.
Select the m_EmployeeSalary mapping to create a session.
The following image shows the mapping m_ EmployeeSalary highlighted :
The
Workflow Wizard
creates a session called s_m_EmployeeSalary.
Click
Next
.
Click
Run on demand
and click
Next
.
The
Workflow Wizard
displays the settings you chose.
Click
Finish
to create the workflow.
The
Workflow Wizard
creates a Start task and session. You can add other tasks to the workflow later.
Click
Repository
Save
to save the workflow.
Double-click the s_m_EmployeeSalary session to open it for editing.
Click the
Mapping
tab.
Select the connection for the SQ_DEPARTMENT Source Qualifier transformation.
Select the XMLDSQ_Employees source on the
Mapping
tab.
Verify that the data.xml file is in the specified source file directory.
Click the ENG_SALARY target instance on the
Mapping
tab and verify that the output file name is eng_salary.xml.
The following image shows the contents of the
Mapping
tab:
Output file name
Click the SALES_SALARY target instance on the
Mapping
tab and verify that the output file name is sales_salary.xml.
Click
OK
to close the session.
Click
Repository
Save
.
Run and monitor the workflow.
The Integration Service creates the eng_salary.xml and sales_salary.xml files.