Hi all,
I've submitted below as a bug, but OT support recognises this as a development issue. I'm hoping someone from product development can confirm whether this is a bug.
In our EPS 10.2.1 process we’ve got a Java Agent /POJO which we're using to search active workitems in several processes, update process attributes of the processes found and route the workitems, flow of events is:
- ps.getObject for the agent workitem to retrieve process attributes of the current process
- ps.executePMQLStr to find active workitems in subprocesses and the current proces (we only retrieve one workItem per step)
- for every workItem we’re executing the following methods:
- ps.acceptWorkItem
- ps.getObject + ps.setObject to get and set a process attribute
- ps.routeWorkItem
However: In step 3.1 - ps.acceptWorkItem does not throw an error message, but also does not accept the work item. Nothing happens, status remains at 2 (Active – Waiting for Auto Accept), whereas it should change to 1.
We believe this to be a bug in the acceptWorkItem API.
Then obviously step 3.2. ps.setObject throws the error: [com.opentext.ecm.bpm.service.ProcessServiceImpl] (WorkManager(2)-43) The work item 'WI59f68323-9582-4455-bfbf-a7dee6c643b6' on the step 'testStep' is not active. (Current status '2') and of course I get the same if I continue with step 3.3.
I’ve put the ProcessService user (which is used by the agent step) in EPSAdmins and UMSAdmins and just to be sure I’ve made the account a proxy user for the assignees of the relevant work items, so I don’t think permissions are an issue. Also I’ve set ChangeWorkItem and RouteWorkItem permissions on the relative work items to Current User and Process Owner (Process Owner = EPSAdmins).
I’ve been using a similar approach using the web services for a different project and using the web services it works fine.
Many thanks,
Rick Breemer