Once the workflow is finalized at BPEL end the call back url (originally configured in the api-manager.xml and sent to BPEL Engine in the outflow) of API Manager will be called to progress the workflow. In AM, endpoint has been made available in both SOAP and REST variants. They are respectively;
WSDLLocation : http://localhost:8280/services/WorkflowCallbackService?wsdl
Both the endpoints have been secured via Basic Authentication. Hence when invoking either, an Authorization header including a base64 encoded value of the User's username and password needs to be included, along with the request. (E.g :
Authorization: Basic <base64 encoded username:password>)
The endpoint expects the following list of parameters.
|The unique identifier sent to the BPEL against which the workflow is tracked in API Manager||YES|
|The next status to which the workflow needs to be promoted to.||YES|
|Notes, that may need to be persisted against a particular workflow.||NO|
A sample curl request for invoking the REST endpoint would be as follows.
A sample SOAP request would be as below.