cancel
Showing results for 
Search instead for 
Did you mean: 

mdm workflow - sample needed

Former Member
0 Kudos

Hi,

My requirement is from a java file , based on certain condition I need to trigger an MDM workflow. For example

if(strValue3.equals("ACTIVE")){

CreateWorkflowJobCommand objCreateWorkflowJobCommand = new CreateWorkflowJobCommand(connections.getConnectionAccessor());

objCreateWorkflowJobCommand.setSession(sessionId);

objCreateWorkflowJobCommand.setRecordIds(new RecordId[]{new RecordId(strRecordId)});

objCreateWorkflowJobCommand.setWorkflowId(objWorkFlowID);

try

{

objCreateWorkflowJobCommand.execute();

}

catch (CommandException e1)

{

// TODO Auto-generated catch block

e1.printStackTrace();

throw e1;

}

}

Is it the right way to do?When I try this, I get error at connections.getConnectionAccessor() as the connection object is not able to recognize getConnectionAccessor.

I used the below code to create connection object

ConnectionPool connections = null;

try {

connections = ConnectionPoolFactory.getInstance(serverName);

}

Please help me in this regard. If possible provide me sample code

thanks

Prabhu.M...

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

I got the sample

Thanks