on 07-29-2009 5:14 PM
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...
I got the sample
Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.