Hi Dhanush, did I understand the following correctly? You have an event listener that listens to certain events and then immediately call the PMAPI via SOAP to get more information?
This does not work since the event handlers are blocking and the transaction will only be committed when the event handler returns without any exception. What you could try is to use the JCA connector or to tweak the event listener API so that it gains access to a BpelManagementFacade. There is no mechanism yet to get notified by the txn commit. HTH a bit, Tammo On 28.07.2010 13:18, Dhanush Gopinath wrote: > Hi, > > In my Event Listener I am catching ProcessInstanceStartedEvent, > ProcessInstanceStateChangeEvent, NewProcessInstanceEvent events and > calling the ODE Web service getInstanceInfo() on Instance Management > port to get the instance details of that process instance. But all of > them throw an exception saying instance not found. So when does the > process instance gets actually saved in the ODE DB. Which event will > give me the state of a process instance after its saved? > > Exception is given below > > > > 2010-07-28 16:41:34,107 ERROR > [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/Enterp > riseProcessManager].[EPMODEBpelEventListenerServlet]] Servlet.service() > for servlet EPMODEBpelEventListenerServlet threw exception > > javax.xml.ws.soap.SOAPFaultException: java.lang.RuntimeException: > Invocation of method getInstanceInfo in management interface failed: > Exception while retrieving instance info: > org.apache.ode.bpel.pmapi.InstanceNotFoundException: > InstanceNotFoundException 3509 > > at > com.sun.xml.ws.fault.SOAP11Fault.getProtocolException(SOAP11Fault.java:1 > 89) > > at > com.sun.xml.ws.fault.SOAPFaultBuilder.createException(SOAPFaultBuilder.j > ava:130) > > > > Many thanks in advance. > > > > Best Regards > > Dhanush Gopinath > > > > -- Tammo van Lessen - http://www.taval.de
