#1 2012-04-12 13:58:36

Lalitha
Member
Registered: 2011-02-15
Posts: 35

Generating Workflow on Loading data

Hi all,

    I am working on MDM and Workflow modules on Talend Enterprise MDM Cluster Edition (5.0.1.r74687) Version. While Creating/updating a record manually in Web GUI. We will get workflow.
But my requirement is when I load the data into MDM GUI through a Data Integration job or By Importing Excel file, I need to get workflow for a particular user.

Is this task possible? If so please help me in how to get it.

Thanks in advance.

Regards,
Lalitha.

Offline

 

#2 2012-04-13 19:58:13

vgalopin
Talend team
Registered: 2009-04-15
Posts: 440
Website

Re: Generating Workflow on Loading data

Hi Lalitha,

It is possible.

In the Trigger that you are going to create to start the workflow when a record gets created or updated, you specify some conditions, based on the entry log of the action that has been made.

For example if I create a record in the UI, I'm going to have something like that:

<UpdateRecord>
    <Date>2012-04-13 12:54:00</Date>
    <Updated By>Vincent</Updated By>
    <Action> CREATE</Action>
    <Id>1</Id>
    <Entity>Customer</Entity>
...
</UpdateRecord>

The tag names are not corrects, but you will be able to see the fields when you select the Update Record entity.

So one of this tag actually tells where the update/create comes from. I think the value is WebUI if it was done in the UI, workflow if done from a workflow... And another value if done through a job.

You should take a look at the journal and see what gets entered when you create a record from the UI or from a job.

But basically you can create 2 triggers, one that has the condition "From=WebUI", another "From=DIJob", and you can start a workflow or the other depending on the update source.

Hope that helps!


Vincent Galopin
US Pre-Sales Consultant
Talend US

Offline

 

#3 2012-04-14 09:34:59

Lalitha
Member
Registered: 2011-02-15
Posts: 35

Re: Generating Workflow on Loading data

Hi Vincent Galopin,

     Thank you so much for your quick response.

I tried the task and I observed the code in both data Container and Update Report Container also.
In Journals also it is displaying in source column regarding from what type of source the data is inserting and updating.

In Data Integration Job we have option also to specify source. It is displaying as "TOS" and I included in screen shot and attached below.  Please find the attachment.

In Jounal for source field we can select  the type of source from drop down list. In that genericUI, workflow, adminWorkbench, dataSynchronization are the four options. In this TOS is not listed.

Could you please help me in how to add TOS in this drop down list.

genericUI is for manually inserting or updating record in WEBGUI.
workflow is for updating record through workflow task.
I did not know about other two source type usage.

Please help me in this to know more information about it.

Thank you in advance.

Regards,
Lalitha.


Uploaded Images

Offline

 

Board footer

Powered by FluxBB