Skip to Content
avatar image
Former Member

Trigger MDM Workflow in Webdynpro

Hello,

I want to execute a MDM Workflow from Webdynpro using Java API's. I have the WorkflowId,session Id and the RecordId in the Webdynpro. Can somebody please send the code for the same.?

Any help would be highly appreciated.

Thanks.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Sep 07, 2011 at 07:25 AM

    Hi,

    Check the pdf at the below link.

    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/600333e0-9bf7-2c10-1f99-bf5dcf661949?quicklink=index&overridelayout=true

    Try using this code for calling MDM workflow:

    RetrieveWorkflowTasksCommand task_command = new RetrieveWorkflowTasksCommand(connections);

    task_command.setSession(sessionId);

    task_command.setTableId(new TableId(1));

    try {

    task_command.execute();

    } catch (Exception e1) {

    // TODO Auto-generated catch block

    e1.printStackTrace();

    }

    //Retrieving the tasks after execting the command

    WorkflowTask [] task = task_command.getWorkflowTasks();

    for(int i = 0 ; i < task.length ; i++)

    {

    WorkflowJob job = task.getJob();

    job_id= job.getId();

    System.out.println(job_id.getIdValue());//This is will give the Job ID of all the workflows in MDM.

    }

    Thanks

    Pawan

    Add comment
    10|10000 characters needed characters exceeded