diff --git a/pom.xml b/pom.xml index 81a1cd1..fcb6b90 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ org.camunda.community.automator process-execution-automator - 1.2.1-SNAPSHOT + 1.2.2 17 @@ -17,7 +17,7 @@ 5.9.1 2.0.3 - 3.1.3 + 3.1.4 diff --git a/src/main/java/org/camunda/automator/AutomatorAPI.java b/src/main/java/org/camunda/automator/AutomatorAPI.java index d02edd0..8f7fbe9 100644 --- a/src/main/java/org/camunda/automator/AutomatorAPI.java +++ b/src/main/java/org/camunda/automator/AutomatorAPI.java @@ -8,7 +8,7 @@ import org.camunda.automator.bpmnengine.BpmnEngine; import org.camunda.automator.bpmnengine.BpmnEngineFactory; -import org.camunda.automator.configuration.ConfigurationBpmEngine; +import org.camunda.automator.configuration.BpmnEngineList; import org.camunda.automator.definition.Scenario; import org.camunda.automator.engine.AutomatorException; import org.camunda.automator.engine.RunParameters; @@ -72,7 +72,7 @@ public Scenario loadFromInputStream(InputStream scenarioInputStream, String orig * @param engineConfiguration different engine configuration * @return the engine, null if no engine exist, an exception if the connection is not possible */ - public BpmnEngine getBpmnEngineFromScenario(Scenario scenario, ConfigurationBpmEngine engineConfiguration) + public BpmnEngine getBpmnEngineFromScenario(Scenario scenario, BpmnEngineList engineConfiguration) throws AutomatorException { try { @@ -124,9 +124,8 @@ public RunResult executeScenario(BpmnEngine bpmnEngine, RunParameters runParamet /* Deploy a process in the server */ /* ******************************************************************** */ - public BpmnEngine getBpmnEngine(ConfigurationBpmEngine engineConfiguration, - ConfigurationBpmEngine.BpmnServerDefinition serverDefinition) - throws AutomatorException { + public BpmnEngine getBpmnEngine(BpmnEngineList engineConfiguration, + BpmnEngineList.BpmnServerDefinition serverDefinition) throws AutomatorException { return BpmnEngineFactory.getInstance().getEngineFromConfiguration(engineConfiguration, serverDefinition); } diff --git a/src/main/java/org/camunda/automator/AutomatorCLI.java b/src/main/java/org/camunda/automator/AutomatorCLI.java index a2859f1..33fccb6 100644 --- a/src/main/java/org/camunda/automator/AutomatorCLI.java +++ b/src/main/java/org/camunda/automator/AutomatorCLI.java @@ -1,8 +1,9 @@ package org.camunda.automator; import org.camunda.automator.bpmnengine.BpmnEngine; -import org.camunda.automator.configuration.ConfigurationBpmEngine; +import org.camunda.automator.configuration.BpmnEngineList; import org.camunda.automator.definition.Scenario; +import org.camunda.automator.engine.AutomatorException; import org.camunda.automator.engine.RunParameters; import org.camunda.automator.engine.RunResult; import org.slf4j.Logger; @@ -27,7 +28,7 @@ public class AutomatorCLI implements CommandLineRunner { @Autowired AutomatorAPI automatorAPI; @Autowired - ConfigurationBpmEngine engineConfiguration; + BpmnEngineList engineConfiguration; public static void main(String[] args) { isRunningCLI = true; @@ -59,37 +60,37 @@ public static void main(String[] args) { /* ******************************************************************** */ private static void printUsage() { - System.out.println("Usage: