Hi All,
I'm trying to call the REST services of the BPM (BAW), following the instructions of the page
https://www.ibm.com/support/knowledgecenter/en/SS8JB4/com.ibm.wbpm.wle.editor.doc/topics/cdev_restapis_invoke_rest.html, but unfortunately unsuccessful :(.
I have a REST server with all the necessary settings:
an External service:
and a Service Flow with the javascript code to call the service:
var request = new BPMRESTRequest();
request.externalServiceName = "BAWRESTService";
request.operationName = "processes";
request.httpMethod = "GET";
request.httpHeaders = {"Content-Type" : "application/json", "Accept" : "text/plain"};
tw.local.response = tw.system.invokeREST(request);
The operation name "processes" is written in the swagger file:
But I get the error "
Cannot find the selected OpenAPI operation name "processes" in the external service.":
I don't understand this... How could I call the operations of the BPM REST?
Unfortunaely I can't use an External Service which it is created as External Implemetation. In this case I get the error
Cannot create the REST binding invoker. Binding is: null.On the other hand I can call BPM REST services from SoapUI, but the process list retrieval operation name is
processApps instead of
processes (using the URL
host/rest/bpm/wle/v1/processApps). It is confusing...
Any help appreciated!
Thx,
------------------------------
____________________
Laszlo
------------------------------