on 08-05-2015 7:34 AM
Hi
We have migrated from MDM 7.1 SP04 to MDM 7.1 SP12.
When we try to trigger workflow for single record in MDM jav api is returning after approx 50 - 90 seconds.
Where as in SP04 it took just 2 seconds to complete workflow.
Below is the code snippet (method) for the same. Please verify the cause for the delay thoguh workflow launched successfully.
private static void triggerWorkFlow(SimpleConnection connection,
String userSession, TableId tableId, List<RecordId> recordIds,
Logger output) throws Exception {
try {
RetrieveWorkflowsCommand retriveworksFlows = new RetrieveWorkflowsCommand(
connection);
retriveworksFlows.setSession(userSession);
retriveworksFlows.setTableId(tableId);
retriveworksFlows.execute();
WorkflowProperties[] workflowpro = retriveworksFlows.getWorkflows();
WorkflowId workflowId = null;
for (int n = 0; n < workflowpro.length; n++) {
if ("W_ASSIGNMENTS_TITLE".equalsIgnoreCase(workflowpro[n]
.getCode())) {
workflowId = workflowpro[n].getId();
output.info("Title workflow retrieved<<MT.");
break;
}
}
// System.out.println("Identified workflow is ==> "+workflowId);
CreateWorkflowJobCommand workflowjobcommand = new CreateWorkflowJobCommand(
connection);
workflowjobcommand.setWorkflowId(workflowId);
workflowjobcommand.setRecordIds(recordIds.toArray(new RecordId[0]));
workflowjobcommand.setSession(userSession);
workflowjobcommand.execute();
WorkflowJobId jobId = workflowjobcommand.getWorkflowJobId();
// commented in SP12
/* LaunchWorkflowJobCommand launcher = new LaunchWorkflowJobCommand(
connection);
launcher.setSession(userSession);
launcher.setJobId(jobId);
launcher.execute(); */
output.info(" Workflow successfully launched<<."+jobId);
} catch (Exception ex) {
ex.printStackTrace();
throw ex;
}
}
Hi Charinde,
As per SAP, an extensive list of bug fixes and optimizations available in MDM 7.1 SP05, for more details please have a look of 1422355 - SAP NetWeaver MDM 7.1 SP05 Release but not sure about slowness.
Thanks,
Hamendra
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Perera,
I am not sure much on workflow but I assume below links can help you.
Cheers
Sharma
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 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.