public static void addArrayField(JsonObject jsonObject, String name, String[] array) { if (jsonObject != null && name != null && array != null) { addListField(jsonObject, name, Arrays.asList(array)); } }
public static void addArrayField(JsonObject jsonObject, String name, String[] array) { if (jsonObject != null && name != null && array != null) { addListField(jsonObject, name, Arrays.asList(array)); } }
public JsonObject toJsonObject(BatchConfiguration configuration) { JsonObject json = JsonUtil.createObject(); JsonUtil.addListField(json, HISTORIC_DECISION_INSTANCE_IDS, configuration.getIds()); return json; }
public JsonObject toJsonObject(BatchConfiguration configuration) { JsonObject json = JsonUtil.createObject(); JsonUtil.addListField(json, HISTORIC_PROCESS_INSTANCE_IDS, configuration.getIds()); return json; }
public JsonObject toJsonObject(BatchConfiguration configuration) { JsonObject json = JsonUtil.createObject(); JsonUtil.addListField(json, HISTORIC_PROCESS_INSTANCE_IDS, configuration.getIds()); return json; }
public JsonObject toJsonObject(BatchConfiguration configuration) { JsonObject json = JsonUtil.createObject(); JsonUtil.addListField(json, HISTORIC_DECISION_INSTANCE_IDS, configuration.getIds()); return json; }
@Override public JsonObject toJsonObject(SetRetriesBatchConfiguration configuration) { JsonObject json = JsonUtil.createObject(); JsonUtil.addListField(json, EXTERNAL_TASK_IDS, configuration.getIds()); JsonUtil.addField(json, RETRIES, configuration.getRetries()); return json; }
public JsonObject toJsonObject(UpdateProcessInstancesSuspendStateBatchConfiguration configuration) { JsonObject json = JsonUtil.createObject(); JsonUtil.addListField(json, PROCESS_INSTANCE_IDS, configuration.getIds()); JsonUtil.addField(json, SUSPENDING, configuration.getSuspended()); return json; }
public JsonObject toJsonObject(SetRetriesBatchConfiguration configuration) { JsonObject json = JsonUtil.createObject(); JsonUtil.addListField(json, JOB_IDS, configuration.getIds()); JsonUtil.addField(json, RETRIES, configuration.getRetries()); return json; }
public JsonObject toJsonObject(SetRetriesBatchConfiguration configuration) { JsonObject json = JsonUtil.createObject(); JsonUtil.addListField(json, JOB_IDS, configuration.getIds()); JsonUtil.addField(json, RETRIES, configuration.getRetries()); return json; }
public JsonObject toJsonObject(UpdateProcessInstancesSuspendStateBatchConfiguration configuration) { JsonObject json = JsonUtil.createObject(); JsonUtil.addListField(json, PROCESS_INSTANCE_IDS, configuration.getIds()); JsonUtil.addField(json, SUSPENDING, configuration.getSuspended()); return json; }
@Override public JsonObject toJsonObject(SetRetriesBatchConfiguration configuration) { JsonObject json = JsonUtil.createObject(); JsonUtil.addListField(json, EXTERNAL_TASK_IDS, configuration.getIds()); JsonUtil.addField(json, RETRIES, configuration.getRetries()); return json; }
@Override public JsonObject toJsonObject(ModificationBatchConfiguration configuration) { JsonObject json = JsonUtil.createObject(); JsonUtil.addListField(json, INSTRUCTIONS, ModificationCmdJsonConverter.INSTANCE, configuration.getInstructions()); JsonUtil.addListField(json, PROCESS_INSTANCE_IDS, configuration.getIds()); JsonUtil.addField(json, PROCESS_DEFINITION_ID, configuration.getProcessDefinitionId()); JsonUtil.addField(json, SKIP_LISTENERS, configuration.isSkipCustomListeners()); JsonUtil.addField(json, SKIP_IO_MAPPINGS, configuration.isSkipIoMappings()); return json; }
public JsonObject toJsonObject(MigrationPlan migrationPlan) { JsonObject json = JsonUtil.createObject(); JsonUtil.addField(json, SOURCE_PROCESS_DEFINITION_ID, migrationPlan.getSourceProcessDefinitionId()); JsonUtil.addField(json, TARGET_PROCESS_DEFINITION_ID, migrationPlan.getTargetProcessDefinitionId()); JsonUtil.addListField(json, INSTRUCTIONS, MigrationInstructionJsonConverter.INSTANCE, migrationPlan.getInstructions()); return json; }
public JsonObject toJsonObject(MigrationPlan migrationPlan) { JsonObject json = JsonUtil.createObject(); JsonUtil.addField(json, SOURCE_PROCESS_DEFINITION_ID, migrationPlan.getSourceProcessDefinitionId()); JsonUtil.addField(json, TARGET_PROCESS_DEFINITION_ID, migrationPlan.getTargetProcessDefinitionId()); JsonUtil.addListField(json, INSTRUCTIONS, MigrationInstructionJsonConverter.INSTANCE, migrationPlan.getInstructions()); return json; }
@Override public JsonObject toJsonObject(RestartProcessInstancesBatchConfiguration configuration) { JsonObject json = JsonUtil.createObject(); JsonUtil.addListField(json, PROCESS_INSTANCE_IDS, configuration.getIds()); JsonUtil.addField(json, PROCESS_DEFINITION_ID, configuration.getProcessDefinitionId()); JsonUtil.addListField(json, INSTRUCTIONS, ModificationCmdJsonConverter.INSTANCE, configuration.getInstructions()); JsonUtil.addField(json, INITIAL_VARIABLES, configuration.isInitialVariables()); JsonUtil.addField(json, SKIP_CUSTOM_LISTENERS, configuration.isSkipCustomListeners()); JsonUtil.addField(json, SKIP_IO_MAPPINGS, configuration.isSkipIoMappings()); JsonUtil.addField(json, WITHOUT_BUSINESS_KEY, configuration.isWithoutBusinessKey()); return json; }
@Override public JsonObject toJsonObject(RestartProcessInstancesBatchConfiguration configuration) { JsonObject json = JsonUtil.createObject(); JsonUtil.addListField(json, PROCESS_INSTANCE_IDS, configuration.getIds()); JsonUtil.addField(json, PROCESS_DEFINITION_ID, configuration.getProcessDefinitionId()); JsonUtil.addListField(json, INSTRUCTIONS, ModificationCmdJsonConverter.INSTANCE, configuration.getInstructions()); JsonUtil.addField(json, INITIAL_VARIABLES, configuration.isInitialVariables()); JsonUtil.addField(json, SKIP_CUSTOM_LISTENERS, configuration.isSkipCustomListeners()); JsonUtil.addField(json, SKIP_IO_MAPPINGS, configuration.isSkipIoMappings()); JsonUtil.addField(json, WITHOUT_BUSINESS_KEY, configuration.isWithoutBusinessKey()); return json; }
public JsonObject toJsonObject(DeleteProcessInstanceBatchConfiguration configuration) { JsonObject json = JsonUtil.createObject(); JsonUtil.addField(json, DELETE_REASON, configuration.getDeleteReason()); JsonUtil.addListField(json, PROCESS_INSTANCE_IDS, configuration.getIds()); JsonUtil.addField(json, SKIP_CUSTOM_LISTENERS, configuration.isSkipCustomListeners()); JsonUtil.addField(json, SKIP_SUBPROCESSES, configuration.isSkipSubprocesses()); return json; }
public JsonObject toJsonObject(DeleteProcessInstanceBatchConfiguration configuration) { JsonObject json = JsonUtil.createObject(); JsonUtil.addField(json, DELETE_REASON, configuration.getDeleteReason()); JsonUtil.addListField(json, PROCESS_INSTANCE_IDS, configuration.getIds()); JsonUtil.addField(json, SKIP_CUSTOM_LISTENERS, configuration.isSkipCustomListeners()); JsonUtil.addField(json, SKIP_SUBPROCESSES, configuration.isSkipSubprocesses()); return json; }
public JsonObject toJsonObject(MigrationBatchConfiguration configuration) { JsonObject json = JsonUtil.createObject(); JsonUtil.addField(json, MIGRATION_PLAN, MigrationPlanJsonConverter.INSTANCE, configuration.getMigrationPlan()); JsonUtil.addListField(json, PROCESS_INSTANCE_IDS, configuration.getIds()); JsonUtil.addField(json, SKIP_LISTENERS, configuration.isSkipCustomListeners()); JsonUtil.addField(json, SKIP_IO_MAPPINGS, configuration.isSkipIoMappings()); return json; }