I have a Service Task with HTTP REST connector. I parsed the response of the HTTP REST using script task and set to connector outgoing parameter.
My goal is to pass that outgoing parameter to validate the condition ${lineStatus == ‘OK’} at Exclusive gateway. But am getting below exception,
[http-nio-8080-exec-10] org.camunda.bpm.engine.rest.exception.RestExceptionHandler.toResponse org.camunda.bpm.engine.rest.exception.RestException: Cannot instantiate process definition CallForwardUsecase:8:7ff2c878-9153-11e7-b400-5cc5d4a39918: ENGINE-02004 No outgoing sequence flow for the element with id 'ExclusiveGateway_1' could be selected for continuing the process.
at org.camunda.bpm.engine.rest.sub.repository.impl.ProcessDefinitionResourceImpl.submitForm(ProcessDefinitionR
the exception states that both expressions are false. So the lineStatus is neither OK nor OKkk, I would expect that the lineStatus is not OKkk if something went wrong? Did you check if the variable is set to another value or is it empty?
05-Sep-2017 16:16:22.003 SEVERE [http-nio-8080-exec-40] org.camunda.commons.logging.BaseLogger.logError ENGINE-16004 Exception while closing command context: condition expression returns null: result is null
org.camunda.bpm.engine.exception.NullValueException: condition expression returns null: result is null
I think your script has to return something which is then saved as the variable phoneStatus defined in the XML. So instead of connector.setVariable("phoneStatus", s); use something like s; instead.
I have another question about timer event, i have attached a Intermediate Catch event with timer PT10S but the timer event takes more than 50sec. I do not know why it is taking more time than specified. how to overcome this issue?