Really struggling with some development on 6.5 SP2 with Workflow Template created in Process Builder with Process variables defined.
I am attempting to create a job/method that looks for past due documents and then kicks off the workflow template for each one. I have a method class developed that has DFC code to kick off the workflow similar to the following:
dfProc = (IDfProcess)session.getObjectByQualification("dm_process where object_name = '<name>'");
IDfWorkflowBuilder wfBuilder = session.newWorkflowBuilder(dfProc.getObjectId());
wfBuilder.initWorkflow();
wfBuilder.runWorkflow();
etc.
When I run this within my eclipse IDE from my client (via main method for testing), it works great. However, when I deploy the class and kick it off from dm_job and it runs under JMS, I get errors for each process variable:
[DM_WORKFLOW_E_NO_SD_ELEMENT_INSTANCE]error: "The instance of the Structured Data Element, status_off, does not exist for the workflow, 4d00b23880000d47."; ERRORCODE: 100; NEXT: DfException:: THREAD: http-0.0.0.0-9080-2;
Saw another posting that indicated the code is not invoking the DfWorkflowEx class provided with BP when run under JMS.
https://community.emc.com/message/92111
It suggested it was a classpath issue. I have tried to update the classpath environment varable; the JMS classpath config; and have copied bmp_infra.jar in every path referenced by classpath on the content server where JMS is running. Very frustrating. Any help greatly appreciated.
Another issue: when I run from client and it does succesfully create the workflow, the activity name does not reflect the dynamic activity name as configured via process builder (I have tacked on component name); it only has the static portion of the name for the activity and is ignoring the dynamic part.
Thanks,
ss