String scriptPrefix = getPrefix(getId(), phase.getKey(), String.format("%04d", index++)); properties.setProperty(scriptPrefix + KEY_ID, script.getId()); properties.setProperty(scriptPrefix + KEY_KIND, script.getKind().getSymbol()); properties.setProperty(scriptPrefix + KEY_BLOCKERS, join(script.getBlockerIds())); properties.setProperty(scriptPrefix + KEY_SUPPORTED_EXTENSIONS, join(script.getSupportedExtensions())); properties.setProperty(envPrefix + entry.getKey(), entry.getValue()); switch (script.getKind()) { case COMMAND: { CommandScript s = (CommandScript) script; throw new AssertionError(script.getKind());
List<ScriptJob<?>> results = new ArrayList<>(); for (ExecutionScript execution : executions) { if (enables.contains(execution.getKind()) == false) { throw new IllegalStateException(MessageFormat.format( "job kind {2} is not enabled in this flow (batch={0}, flow={1})", context.getBatchId(), context.getFlowId(), execution.getKind())); switch (execution.getKind()) { case COMMAND: { CommandScript exec = (CommandScript) execution;