Hi all,
In our EPS 10.2.1 process we’ve got a Java Agent /POJO which we're using to get some information from an external system and write back the results in the process attributes.
This agentstep is part of a (sub)process containing a delay stap which schedules this agent to be run at a certain time (in our example for example every day at 04:00). When testing this with a single process this seems to work fine, but now we're testing with multiple active process instances this gives some errors.
When we have for example 3-4 process instances in parallel, some of them finish correctly, but some of them result in an error:
2012-07-03 04:01:55,866 ERROR [com.opentext.ecm.bpm.agent.AgentEngine] (WorkManager(2)-78) execute of work item 'WIz1341280907145a84c23c9-0094-423c-9f9b-a1cf4cb80530' at synchronous agent 'class nl.cacf.eps.ServiceCallAgent' failed (PIz1341280803662f28e6998-742d-4455-b73f-fdf2ca46c254):
com.opentext.ecm.bpm.locking.exception.WrongVersionOfObjectException: The timestamp '1,341,280,910,011' of the object '_default' (containing to 'WIz1341280907145a84c23c9-0094-423c-9f9b-a1cf4cb80530') is not correct (current timestamp '1,341,280,904,775').
When I manually retry resume these suspended agent step, they end correctly.
Anyone an idea what could be causing this issue. I know the recent version of the agent framework offers an additional setting LockProcessInstance which might help, but we don't have multiple agents running simulteously for a specific process instance.
Anyone an idea?
Regards,
Peter