Hi,
I need WFMWorkflow object in java class which is called from a URL external task in WFM.
I have tried following code but it is returning - " Invalid workflow Id <job_id>".
CSWorkflow job = task.getWorkflow();
Integer jobid = new Integer(job.getId());
long wfid = jobid.longValue();
logger.debug("wfid: " + wfid);
WFMWorkflowEngine wfengine = WFMWorkflowEngine.getInstance();
logger.debug("wfengine: " + wfengine);
WFMWorkflow workflow = wfengine.getWorkflow(wfid);
I can still see the Job in TeamSite but not sure why it is saying Invalid workflow ID. We are using TeamSite 7.2.1 on linux environment.
Any pointers would be highly appreciated.
Thanks