cancel
Showing results for 
Search instead for 
Did you mean: 

How to insert batch records to a workflow using MDM-Java

Former Member
0 Kudos

Hello Experts,

I am able to add records in MDM but my problem is that I can only add one record per workflow job. I have several records in a catalog and I need these records to be in a single workflow job. As compared when importing via Import Manager, I can see several records in a single workflow.

Can anyone provide me a code snippet? TIA!

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Wilson,

You can do this by using the AddRecordsToWorflowJobCommand.

The WorkflowJobId (required) can be retrieved in 2 steps:

1) Run the RetrieveWorkflowsCommand. This command gives you a list of all workflows. Just loop over this list and retrieve the required workflow(for instance by looking on workflow-name).

2) Once you find the required workflow (the workflow-id that is), run the CreateWorkflowJobCommand. This instantiates a workflow job. With the Id you receive as the response, you can then run the AddRecordsToWorflowJobCommand and add the specific records.

Let me know if this suffices.

Good luck,

Gerwin Jansen

Former Member
0 Kudos

Gerwin,

Thanks for your suggestions. I followed all of it aside from AddRecordsToWorflowJobCommand. I can now add records into a single workflow.

Thanks!

Answers (0)