I have a problem with calling an external service. My application is a simple booking system. At one point in the flow I have to call an external service that handles payment. The payment service exposes a web service that I use to set up the transaction. One of the parameters to this web service is the page that I want it to redirect the user back to, and the return value is the url that I have to redirect the user to to start payment. There are also some other data that I am passing in the web service call (user information, amount, currency etc.)
The problem is that I don't know what url to send to the payment service for the 'redirect back to' field. I tried jumping to the payment service like this:
.. but I lose the correct flowExecutionKey. It's sent along as an url parameter by externalRedirect, but that's no use to me. The flowExecutionKey that's current in the paymentAction.pay call is not correct for the redirect back to the flow.Code:<view-state id="processPayment" view="externalRedirect:${flowScope.redirect}" > <entry-actions> <action bean="paymentAction" method="pay"/> </entry-actions> <transition on="success" to="finish"/> </view-state>
Any ideas?
-Magnus


Reply With Quote