I’m using Bonita BPM 6.3.8 with Java 1.6 and I’m attempting to get the state of the workflow via the process instance id.
However, getActivities is returning an empty list, and I can’t find the namedQuery “getActivitiesFromProcessInstance” to see what the query is looking for to explain why it isn’t finding anything.
ProcessAPI processAPI = TenantAPIAccessor.getProcessAPI(session);
ProcessInstance proc = processAPI.startProcess(processAPI.getProcessDefinitionId(“Action Workflow”, “1.18”), variablesToSet);
List activities = processAPI.getActivities(proc.getId(), 0, 100);
If anyone could point me to where the namedQueries are stored, or rather the value of “getActivitiesFromProcessInstance”, that would be greatly appreciated.
Let me know if you need anymore info.
Thanks