Talend Studio enables you to automatically generate Processes based on the workflows listed under the Workflow node in the MDM Repository tree view.
Once this Process is generated, you can attach it to a Trigger. When the Trigger is kicked off, it launches the Process that will initiate the workflow itself. This will list any required intervention on data records in the Web User Interface in the form of workflow tasks.
For more information on creating and managing Triggers, see Triggers. For more information on workflow tasks, see Talend MDM Web User Interface User Guide.
Prerequisite(s): You have already connected to the MDM server from Talend Studio. At least one workflow has been created and deployed on the MDM server.
To generate a Process based on a workflow:
In the MDM Repository tree view, expand the Workflow node.
Right-click the workflow for which you want to generate a Process and select Generate Workflow Caller Process.
A dialog box is displayed.
From the Data Models list, select the data model to which you want to attach the workflow.
Select a business entity from the list, Product in this example.
The name of the selected business entity is displayed in the Xpath field.
Click Add to close the dialog box.
The generated Process is listed under the Process node in the MDM Repository tree view.
You must deploy your changes to the server for them to be taken into account at runtime.
Double-click the generated Process to open an editor in the workspace that lists the Process parameters.
One step is automatically defined and listed in the process Steps Sequence area. The step passes the item to the workflow engine using the workflowcontexttrigger plugin. For further information on Processes, see Processes.
Select the Invoke the workflow step to display the step detail and parameters.
The Parameters area gives you access to two different views Source and Sheet. The Source view lists the detail of the automatically generated XML document with all the variables used in the workflow. This document is used to map the MDM attributes values and xpaths to the workflow variables.
Here, you can modify any of the parameters/variables according to your needs and according to what you have defined in the workflow.
The Sheet view displays a tabular list of all the variables used in the workflow. You can use the and buttons below the table to modify these values.
The Use built-in variables check box is selected by default. If your workflow does not need to connect to the MDM server, you can clear this check box.
From this view, it is also possible to invoke any of the workflows deployed on your MDM server. To do this, do the following:
Click the Select workflows... bar to display a list of all the workflows already deployed on your MDM server.
Select the workflow you want to invoke and then click OK to close the dialog box.
The name of the selected workflow displays in the ID field of the Parameters area.
In the Variables area, use the and buttons below the table to modify the variable names and xpath values according to the workflow you selected.
Save your modifications.
What you must do now is to define a trigger in order to call this process. When the Trigger is kicked off, it will launches the Process that will initiate the workflow itself. This will list any required intervention on data records in the Web User Interface in the form of workflow tasks. For further information, see Triggers.