Hi Thomas, You need to use 'serviceRef' instead of Service URL property if you are going to point to a registry location. Please refer [1]
[1] https://docs.wso2.com/display/BPS351/Invoking+a+BPMN+REST+Endpoint Thanks, Himasha On Mon, Sep 25, 2017 at 6:59 PM, Thomas LEGRAND < thomas.legr...@versusmind.eu> wrote: > Hello, > > I am writing a little process where I need to call a REST endpoint. But, > this process will be deployed on different environment (dev, prod, etc...) > so the endpoint will change. This endpoint is something like that : > > <BASE_ENDPOINT>/somethingConstant/${aValueHere} > > I read that it is possible to use registry entry to fill a Service URL but > that does not work for me (I put conf:/baseEndpointParameters [1] [2] where > the content of the resource baseEndpointParameters was a joinable one) but > the error message I received in the console was : > > [2017-09-25 15:24:58,534] [EI-Business-Process] ERROR > {org.wso2.carbon.bpmn.extensions.rest.RESTTask} - Failed to execute GET > conf:/baseEndpointParameters within task servicetask4:Récupération > correspondance in process instance 107599 > org.apache.http.client.ClientProtocolException: URI does not specify a > valid host name: conf:/baseEndpointParameters > > Then, I would like to reuse the value of the param in the registry to > append the custom value. Is it possible? > > Regards, > > Thomas > > > [1] [image: Images intégrées 1] > > [2] [image: Images intégrées 2] > > _______________________________________________ > Dev mailing list > Dev@wso2.org > http://wso2.org/cgi-bin/mailman/listinfo/dev > > -- Himasha Guruge Senior Software Engineer WS*O2* *Inc.* Mobile: +94 777459299 himas...@wso2.com
_______________________________________________ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev