Changeset 77:8e9b37db5564

Renamed variable
author unexist
date Mon, 16 Aug 2021 18:13:59 +0200
parents b3787089a875
children 729749c49089
files todo-service-camunda-rest-engine-quarkus/src/main/java/dev/unexist/showcase/todo/adapter/CamundaResource.java
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/todo-service-camunda-rest-engine-quarkus/src/main/java/dev/unexist/showcase/todo/adapter/CamundaResource.java	Mon Aug 16 18:13:08 2021 +0200
+++ b/todo-service-camunda-rest-engine-quarkus/src/main/java/dev/unexist/showcase/todo/adapter/CamundaResource.java	Mon Aug 16 18:13:59 2021 +0200
@@ -55,13 +55,13 @@
     public Response create(TodoBase base, @Context UriInfo info) {
         ProcessEngine ProcEngine = this.camundaEngine.getProcessEngine();
 
-        ObjectValue todoAsJson = Variables.objectValue(base)
+        ObjectValue objectValue = Variables.objectValue(base)
                 .serializationDataFormat(Variables.SerializationDataFormats.JSON)
                 .create();
 
         ProcessInstance processInstance = ProcEngine.getRuntimeService()
                 .createProcessInstanceByKey("todo")
-                .setVariable("todo", todoAsJson)
+                .setVariable("todo", objectValue)
                 .executeWithVariablesInReturn();
 
         String id = processInstance.getId();