Workflow in Informatica: Create, Task & Manager
โก Smart Summary
Workflow in Informatica is the container that tells the Integration Service which tasks to run, in which order, and with which connections, turning a saved mapping into work that actually executes.

Mappings describe how data changes. Workflows decide when and in what order that work runs.
What is Workflow?
A workflow is a group of instructions or commands given to the Integration Service in Informatica. The Integration Service is the entity which reads workflow information from the repository, fetches data from sources and, after performing transformations, loads it into the target.
Workflow – it defines how to run tasks such as the session task, command task, email task and so on.
To create a workflow:
- You first need to create tasks
- And then add those tasks to the workflow.
A workflow is like an empty container which has the capacity to store an object you want to execute. You add to the workflow the tasks that you want to execute. In this tutorial, we are going to do the following things in a workflow.
Workflow execution can be done in two ways:
- Sequence – tasks execute in the order in which they are defined
- Event based – tasks get executed based on event conditions.
How to open Workflow Manager
Step 1) In the Informatica Designer, click on the Workflow Manager icon.
Step 2) This will open a window of Workflow Manager. Then, in the Workflow Manager:
- We are going to connect to the repository “guru99”, so double-click on the folder to connect.
- Enter the user name and password, then select the “Connect” button.
Step 3) In the Workflow Manager:
- Right-click on the folder
- In the pop-up menu, select the open option
This will open up the workspace of Workflow Manager.
How to Create Connections for Workflow Manager
To execute any task in Workflow Manager, you need to create connections. By using these connections, the Integration Service connects to different objects.
For example, in your mapping, if you have a source table in an Oracle database, then you will need an Oracle connection so that the Integration Service can connect to the Oracle database to fetch the source data.
The following types of connections can be created in Workflow Manager.
- Relational Connection
- FTP Connection
- Queue
- Application
The choice of connection you create will depend on the type of source and target systems you want to connect to. More often, you would be using relational connections.
To Create a Relational Connection
Step 1) In Workflow Manager:
- Click on the Connections menu
- Select the Relational option
Step 2) In the pop-up window:
- Select Oracle in type
- Click on the new button
Step 3) In the new window of connection object definition:
- Enter the connection name (new name – guru99)
- Enter the username
- Enter the password
- Enter the connection string
- Leave other settings as default and select the OK button
Note – the connection string is the database service or TNS name the Integration Service uses to reach the database, not the connection name, which is only a label.
Step 4) You will return to the previous window. Click on the close button.
Now you are set with the relational connection in Workflow Manager.
Components of Workflow manager
There are three component tools of Workflow Manager that help in creating various objects in Workflow Manager. These tools are:
- Task Developer
- Worklet Designer
- Workflow Designer
The three tools are shown below.
Task Developer – Task Developer is a tool with the help of which you can create reusable objects. Reusable objects in Workflow Manager are objects which can be reused in multiple workflows. For example, if you have created a command task in Task Developer, then you can reuse this task in any number of workflows.
Worklet Designer – Worklet Designer creates worklets, which are groups of tasks that behave like a small workflow and can be inserted into other workflows.
The role of Workflow Designer is to execute the tasks that are added to it. You can add any number of tasks to a workflow.
You can create three types of reusable tasks in Task Developer.
- Command task
- Session task
- Email task
Command task – a command task is used to execute different Windows or UNIX commands during the execution of the workflow. You can create a command task to execute various command-based tasks. With the help of this task you can execute commands to create files and folders, to delete files and folders, to FTP files and so on.
Session task – a session task in Informatica is required to run a mapping.
- Without a session task, you cannot execute or run a mapping
- A session task can execute only a single mapping, so there is a one-to-one relationship between a mapping and a session
- A session task is an object with the help of which Informatica gets to know how, where and at what time to execute a mapping
- Sessions cannot be executed independently; a session must be added to a workflow
- In the session object, cache properties and advanced performance optimization settings can be configured
Email task – with the help of an email task you can send email to defined recipients when the Integration Service runs a workflow. For example, if you want to monitor how long a session takes to complete, you can configure the session to send an email containing the details of session start and end time. Or, if you want the Integration Service to notify you when a workflow completes or fails, you can configure the email task for the same.
Workflow Designer adds further non-reusable tasks that control how a workflow behaves at run time.
| Task | What it does |
|---|---|
| Session | Runs one mapping with real source and target connections. |
| Command | Runs shell or DOS commands, for example to copy, archive or delete files. |
| Sends a notification when a session or workflow completes or fails. | |
| Decision | Evaluates a condition and sets a value that later links can test. |
| Timer | Waits for a set period or an absolute time before the next task starts. |
| Control | Stops, aborts or fails the workflow depending on the option chosen. |
| Assignment | Assigns a value to a user-defined workflow variable. |
| Worklet | Groups a set of tasks so the group can be reused inside other workflows. |
How to create command task
Step 1) To create a command task we are going to use Task Developer. In Workflow Manager, open Task Developer by clicking on the “Task Developer” tab from the menu.
Step 2) Once Task Developer is opened up, follow these steps:
- Select the Tasks menu
- Select the Create option
Step 3) In the create task window:
- Select command as the type of task to create
- Enter the task name
- Select the create button
This will create the command task. Now you have to configure the task to add a command to it, which we will see in the next step.
Step 4) To configure the task, double-click on the command task icon and it will open an “edit task window”. On the new edit task window:
- Select the Commands menu
- Click on the add new command icon
- Enter the command name
- Click on the command icon to add command text
This will open a command editor box.
Step 5) In the command editor box, enter the command “mkdir C:\guru99” (this is the Windows command to create a folder named “guru99”) and select OK.
After this step you will return to the edit tasks window and you will be able to see the command you added in the command text box.
Step 6) Click OK on the edit task window.
The command task will be created in Task Developer under the “guru99” repository.
Note – use the Ctrl+S shortcut to save the changes to the repository.
How to create workflow to execute command task
To execute a command task you have to switch to Workflow Designer. Workflow Designer builds the parent or container object in which you can add multiple tasks; when the workflow is executed, all the added tasks will execute. To create a workflow, follow these steps.
Step 1) Open Workflow Designer by clicking on the Workflow Designer menu.
Step 2) In Workflow Designer:
- Select the Workflows menu
- Select the create option
Step 3) In the create workflow window:
- Enter the workflow name
- Select the OK button (leave other options as default)
This will create the workflow.
Naming convention – workflow names are prefixed with ‘wkf_’. If you have a session named ‘s_m_employee_detail’, then the workflow for the same can be named ‘wkf_s_m_employee_detail’.
When you create a workflow, it does not consist of any tasks. So, to execute any task in a workflow you have to add the task to it.
Step 4) To add the command task that we created in Task Developer to Workflow Designer:
- In the navigator tree, expand the Tasks folder
- Drag and drop the command task into Workflow Designer
Step 5) Select the “link task” option from the toolbox in the top menu. The link task option links various tasks in a workflow to the start task, so that the order of execution of tasks can be defined.
Step 6) Once you select the link task icon, it will allow you to drag the link between the start task and the command task. Now select the start task and drag a link to the command task.
Now you are ready with the workflow having a command task to be executed.
How to execute workflow
Step 1) To execute the workflow:
- Select the Workflows option from the menu
- Select the start workflow option
This will open the Workflow Monitor window and execute the workflow.
Once the workflow is executed, it will execute the command task to create a folder (the guru99 folder) in the defined directory.
Session Task
A session task in Informatica is required to run a mapping. The rules listed earlier apply to every session you create: one session runs exactly one mapping, the session cannot run on its own, and it carries the connection, cache and performance settings the Integration Service uses at run time.
How to create a session task
In this exercise you will create a session task for the mapping “m_emp_emp_target” which you created in the previous article.
Step 1) Open Workflow Manager and open Task Developer.
Step 2) Now that Task Developer is open, in Workflow Manager go to the main menu:
- Click on the Tasks menu
- Select the create option
This will open a new window, “Create Task”.
Step 3) In the create task window:
- Select session as the type of task.
- Enter the name of the task.
- Click the create button
Step 4) A window for selecting the mapping will appear. Select the mapping which you want to associate with this session; for this example select the “m_emp_emp_target” mapping and click the OK button.
Step 5) After that, click on the “Done” button.
The session object will appear in Task Developer.
Step 6) In this step you will create a workflow for the session task. Click on the Workflow Designer icon.
Step 7) In the Workflow Designer tool:
- Click on the Workflows menu
- Select the create option
Step 8) In the create workflow window:
- Enter the workflow name
- Select OK (leave the other properties as default; there is no need to change any properties)
In Workflow Manager a start task will appear; it is the starting point for execution of the workflow.
Step 9) In Workflow Manager:
- Expand the Sessions folder under the navigation tree.
- Drag and drop the session you created into the Workflow Manager workspace.
Step 10) Click on the link task option in the toolbox.
Step 11) Link the start task and the session task using the link.
Step 12) Double-click on the session object in Workflow Manager. It will open a task window where you can modify the task properties.
Step 13) In the edit task window:
- Select the Mapping tab
- Select the connection property
- Assign the connection to source and target – the connection which we created in the earlier steps.
- Select the OK button
Now your configuration of the workflow is complete, and you can execute the workflow.
How to add multiple tasks to a start task
The start task is the starting point for the execution of a workflow. There are two ways of linking multiple tasks to a start task.
- Parallel
- Serial
In parallel linking, the tasks are linked directly to the start task and all tasks start executing in parallel at the same time.
How to add tasks in parallel
Step 1) In Workflow Manager, open the workflow “wkf_run_command”.
Step 2) In the workflow, add the session task “s_m_emp_emp_target” by selecting the session and then dragging and dropping it.
Step 3) Select the link task option from the toolbox.
Step 4) Link the session task to the start task by clicking on the start task, holding the click and connecting to the session task.
After linking the session task, the workflow will look like this.
Step 5) Start the workflow and monitor it in Workflow Monitor.
Workflow Monitor then reports both tasks for the same run.
How to add tasks in serial mode
But before we add tasks in serial mode, we have to delete the link that we added to demonstrate parallel execution of tasks. For that:
Step 1) Open the workflow “wkf_run_command”.
- Select the link to the session task.
- Select the edit option in the menu
- Select the delete option
Step 2) A confirmation dialogue box will appear in a window; select the yes option.
The link between the start task and the session task will be removed.
Step 3) Now again go to the top menu and select the link task option from the toolbox.
Step 4) Link the session task to the command task.
After linking, the workflow will look like this.
Step 5) To make the visual appearance of the workflow clearer:
- Right-click on the workspace of the workflow
- Select the arrange menu
- Select the Horizontal option
The tasks are then laid out from left to right.
If you start the workflow, the command task will execute first and, after its execution, the session task will start.
Workflow Variable
Workflow variables allow different tasks in a workflow to exchange information with each other, and also allow tasks to access certain properties of other tasks in a workflow. For example, to get the current date you can use the built-in variable “sysdate”.
The most common scenario is when you have multiple tasks in a workflow and in one task you access the variable of another task. For example, if you have two tasks in a workflow and the requirement is to execute the second task only when the first task has executed successfully, you can implement such a scenario using a predefined variable in the workflow.
Implementing the scenario
We had a workflow “wkf_run_command” with tasks added in serial mode. Now we will add a condition to the link between the session task and the command task, so that only after the success of the command task will the session task be executed.
Step 1) Open the workflow “wkf_run_command”.
Step 2) Double-click on the link between the session and command task.
An Expression window will appear.
Step 3) Double-click the status variable under the “cmd_create_folder” menu. A variable “$cmd_create_folder.status” will appear in the editor window on the right side.
Step 4) Now we will set the variable “$cmd_create_folder.status” condition to the succeeded status, which means that only when the previous task has executed and the execution was successful will the next session task run.
- Change the variable to the value “$cmd_create_folder.status=SUCCEEDED”.
- Click the OK button
The workflow will look like this.
When you execute this workflow, the command task executes first, and only when it succeeds will the session task be executed.
Workflow Parameter
Workflow parameters are those values which remain constant throughout the run. Once their value is assigned it remains the same. Parameters can be used in workflow properties and their values can be defined in parameter files. For example, instead of using a hard-coded connection value you can use a parameter or variable in the connection name, and the value can be defined in the parameter file.
Parameter files are the files in which we define the values of mapping and workflow variables or parameters. These files have the extension “.par”. As a general standard, a parameter file is created for a workflow.
Advantages of a parameter file
- Helps in migration of code from one environment to another
- Allows easy debugging and testing
- Values can be modified with ease without a change in code
Structure of parameter file
The structure of a parameter file is a section heading followed by one name=value pair per line:
[folder_name.WF:Workflow_name] $Parameter_name=Parameter_value
Folder_name is the name of the repository folder, and workflow name is the name of the workflow for which you are creating the parameter file.
Note – the Integration Service treats everything before the first equals sign as the parameter name and everything after it as the value, so avoid spaces around it.
We will be creating a parameter file for the database connection “guru99” which we assigned in our earlier sessions for sources and targets.
How to create parameter file
Step 1) Create a new empty file (a Notepad file).
Step 2) In the file, enter the text as shown in the figure.
Step 3) Save the file under a folder guru99 at the location “C:\guru99” as “wkf_run_command.par”.
In the file we have created a parameter “$DBConnection_SRC”; we will assign the same to a connection in our workflow.
Step 4) Open the workflow “wkf_run_command”.
- Select the Workflows menu
- Select the edit option
Step 5) This will open up the edit workflow window. In this window:
- Go to the Properties tab menu
- Enter the parameter file name as “c:\guru99\wkf_run_command.par”
- Select the OK button
Now we are done with defining the parameter file content and pointing it to a workflow.
The next step is to use the parameter in the session.
Step 6) In the workflow, double-click on the session “s_m_emp_emp_target”, then:
- Select the Mappings tab menu
- Select the connection property in the left panel
- Click on the target connection, which is hard-coded now as “guru99”
Step 7) A connection browser window will appear. In that window:
- Select the option to use a connection variable
- Enter the connection variable name as “$DBConnection_SRC”
- Select the OK button
Step 8) In the edit task window the connection variable will appear for the target. Select the OK button in the edit task window.
Now we are done with creating a parameter for a connection and assigning its value in the parameter file.
When we execute the workflow, the workflow picks up the parameter file, looks for the value of its parameters and variables in the parameter file, and takes those values.









































































