diff --git a/src/main/java/org/camunda/automator/configuration/BpmnEngineList.java b/src/main/java/org/camunda/automator/configuration/BpmnEngineList.java index e99bf15..2b8c49f 100644 --- a/src/main/java/org/camunda/automator/configuration/BpmnEngineList.java +++ b/src/main/java/org/camunda/automator/configuration/BpmnEngineList.java @@ -371,7 +371,7 @@ private List getFromServerConfiguration() { camunda8.operateUserPassword = configurationServersEngine.zeebeOperateUserPassword; camunda8.taskListUrl = configurationServersEngine.zeebeTaskListUrl; camunda8.taskListUserName = configurationServersEngine.zeebeTaskListUserName; - camunda8.taskListUserPassword= configurationServersEngine.zeebeTaskListUserPassword; + camunda8.taskListUserPassword = configurationServersEngine.zeebeTaskListUserPassword; list.add(camunda8); logger.info( "Configuration: Camunda8 Name[{}] zeebeGateway[{}] MaxJobsActive[{}] WorkerThreads[{}] " + "OperateURL[{}]", diff --git a/src/main/java/org/camunda/automator/configuration/ConfigurationStartup.java b/src/main/java/org/camunda/automator/configuration/ConfigurationStartup.java index 4319fa2..230f46a 100644 --- a/src/main/java/org/camunda/automator/configuration/ConfigurationStartup.java +++ b/src/main/java/org/camunda/automator/configuration/ConfigurationStartup.java @@ -97,6 +97,7 @@ public boolean isPolicyDeployProcess() { public Integer getStartEventNbThreads() { return startEventNbThreads; } + public List getScenarioFileAtStartup() { return recalibrateAfterSplit(scenarioFileAtStartup); } diff --git a/src/main/java/org/camunda/automator/definition/ScenarioStep.java b/src/main/java/org/camunda/automator/definition/ScenarioStep.java index dd48fbc..d451a6e 100644 --- a/src/main/java/org/camunda/automator/definition/ScenarioStep.java +++ b/src/main/java/org/camunda/automator/definition/ScenarioStep.java @@ -32,7 +32,7 @@ public class ScenarioStep { */ private Integer nbThreads = Integer.valueOf(1); - private Integer nbTokens = null; + private final Integer nbTokens = null; /** * if the step is used in a WarmingUp operation, it can decide this is the time to finish it * Expression is @@ -217,8 +217,9 @@ public void setNbThreads(int nbThreads) { } public int getNbTokens() { - return nbTokens==null? 1: nbTokens; + return nbTokens == null ? 1 : nbTokens; } + public String getProcessId() { return processId; } diff --git a/src/main/java/org/camunda/automator/engine/RunParameters.java b/src/main/java/org/camunda/automator/engine/RunParameters.java index cd95211..4ce7b1b 100644 --- a/src/main/java/org/camunda/automator/engine/RunParameters.java +++ b/src/main/java/org/camunda/automator/engine/RunParameters.java @@ -191,10 +191,10 @@ public RunParameters setNumberOfThreadsPerScenario(int numberOfThreadsPerScenari return this; } - /** * return the nbThreads to use in a start event, comming from the configuration * If the configuration does not specify anything, then return null. + * * @return the number of thread to use for the start event */ public Integer getStartEventNbThreads() { @@ -204,6 +204,7 @@ public Integer getStartEventNbThreads() { public void setStartEventNbThreads(Integer startEventNbThreads) { this.startEventNbThreads = startEventNbThreads; } + public boolean showLevelDebug() { return getLogLevelAsNumber() >= 5; }