We are invoking a callback webservice from a BPEL and we have given the onAlarm wait time as PT5M. We have intentionally given a Thread.sleep in the webservice so that the callback returns to the BPEL only after 5 mins. This should have made the onMessage to be cancelled and the onAlarm to be triggered in the Pick activity of the BPEL but its not happening in our case. The audit trail of bpel instance shows that the webservice gets invoked only after waiting for the 5 mins and hence the onMessage gets triggered all the time. But we are able to see from the logs that the web service gets invoked properly. Can some one please help? Does the pick activity happen only after the webservice callback returns?
Set the onAlarm to 5 secs and ensure your webservice would not reply for atleast 5 mins. Ensure onAlarm is configured in pick activity and not on Scope.
It should work, if not raise an SR with Oracle :) :)