Hi Team,
I am facing issues when deploy REST Service BPMN file. Please let me know how to deploy Service Task REST service with parseHoliday.js file.
Thanks
Muru
Hi Team,
I am facing issues when deploy REST Service BPMN file. Please let me know how to deploy Service Task REST service with parseHoliday.js file.
Thanks
Muru
Hi,
Here is an example how the request will look like:
Additionally you need to add your parseHoliday.js file, similar to the bpmn file.
Hi Team,
How to deploy parseHoliday.js along with Rest BPM diagram.
please let me know the steps to deploy the Rest Service task.
Thanks
Murug
Hi Yana,
Thanks for your response. I have created post request and sending parseHoliday.js but still I am getting issues as below.
The process could not be started. : Cannot instantiate process definition holiday:2:81e685a7-25fe-11e9-a442-e670b85cfb8e: ENGINE-09024 Unable to find resource at path parseHoliday.js
Thanks
Muru
Could you please upload your bpmn file.
invokeRestService.bpmn (7.4 KB)
This BPMN file is not my won diagram. I am using from the camunda sample Service Task (RestService) only.
I am not able to upload parseHoliday.js but i am adding the code below.
// fetch execution variables
var response = connector.getVariable(“response”);
var date = connector.getVariable(“date”);
// parse response variable with camunda-spin
var holidays = S(response);
var query = “$…[?(@.datum==’” + date + “’)]”;
// use camunda-spin jsonPath to test if date is a holiday
!holidays.jsonPath(query).elementList().isEmpty();
Thanks
Muru
Hi Yana,
I have uploaded BPMN file. Could you please help me how to use parseHoliday.js in SerivceTask(RestService)
Thanks
Muru