Hello,
our process is getting stucked and never return just after calling rest end point.
Here is the java class Delegate method
public class CreateOrderSequence implements JavaDelegate {
public void execute(DelegateExecution execution) throws Exception {
String Operation = execution.getCurrentActivityName();
System.out.println(“CreateOrderSequence JavaDelegate execute method called!!!”);
String ProcessId = execution.getProcessInstanceId();
String Barcode = execution.getVariable(“palletbarcode”).toString();
String Process = execution.getVariable(“process”).toString();
String IlServiceSocket = execution.getVariable(“socket”).toString();
JSONObject body = new JSONObject();
body.put(“id”, ProcessId);
body.put(“palletbarcode”, Barcode);
body.put(“process”, Process);
RequestEntity request = RequestEntity.post(new URI(“http://” + IlServiceSocket + “api/orchestrator/create_ordersequence”))
.accept(MediaType.APPLICATION_JSON).body(body);
RestTemplate restTemplate = new RestTemplate();
ResponseEntity<JSONObject> response = restTemplate.exchange(request, JSONObject.class);
System.out.println("response:" + response);
}
this class not printing response.
I tried to dump my java threads log dump (jstack.txtjstack.txt (71.3 KB) )
and attaching my bpmn diagram as well
processflow.bpmn (30.0 KB)
below is my application.properties file content
data source config
camunda.bpm.database.type=postgres
spring.datasource.url=jdbc:postgresql://localhost:5432/camunda
spring.datasource.username=postgres
spring.datasource.password=postgres
spring.datasource.driverClassName=org.postgresql.Driver
#camunda.bpm.database.schema-update=create-drop
#camunda.bpm.database.table-prefix=camunda
logging config
logging.level.org.camunda.bpm.example=DEBUG
logging.level.org.camunda.bpm=INFO
logging.level.org.springframework=INFO
camunda config
camunda.bpm.history-level=audit
camunda.bpm.admin-user.id = admin
camunda.bpm.admin-user.password= admin
camunda.bpm.admin-user.first-name= admin
camunda.bpm.admin-user.last-name= admin
server.port=8090
spring.jersey.application-path=/orchestrator
I am not an expert into camunda, please help to solve it.