public ExtendLockOnExternalTaskCmd(String externalTaskId, String workerId, long newLockTime) { super(externalTaskId, workerId); EnsureUtil.ensurePositive(BadUserRequestException.class, "lockTime", newLockTime); this.newLockTime = newLockTime; }
public ExtendLockOnExternalTaskCmd(String externalTaskId, String workerId, long newLockTime) { super(externalTaskId, workerId); EnsureUtil.ensurePositive(BadUserRequestException.class, "lockTime", newLockTime); this.newLockTime = newLockTime; }
public static void ensurePositive(String variableName, Long value) { ensurePositive("", variableName, value); }
public static void ensurePositive(Class<? extends ProcessEngineException> exceptionClass, String variableName, Long value) { ensurePositive(exceptionClass, null, variableName, value); }
public static void ensurePositive(String message, String variableName, Long value) { ensurePositive(ProcessEngineException.class, message, variableName, value); }
public static void ensurePositive(Class<? extends ProcessEngineException> exceptionClass, String variableName, Long value) { ensurePositive(exceptionClass, null, variableName, value); }
public static void ensurePositive(String message, String variableName, Long value) { ensurePositive(ProcessEngineException.class, message, variableName, value); }
public static void ensurePositive(String variableName, Long value) { ensurePositive("", variableName, value); }
public DecisionRequirementsDefinitionQuery decisionRequirementsDefinitionVersion(Integer version) { ensureNotNull(NotValidException.class, "version", version); ensurePositive(NotValidException.class, "version", version.longValue()); this.version = version; return this; }
public ProcessDefinitionQueryImpl processDefinitionVersion(Integer version) { ensureNotNull("version", version); ensurePositive("version", version.longValue()); this.version = version; return this; }
public DecisionRequirementsDefinitionQuery decisionRequirementsDefinitionVersion(Integer version) { ensureNotNull(NotValidException.class, "version", version); ensurePositive(NotValidException.class, "version", version.longValue()); this.version = version; return this; }
public CaseDefinitionQuery caseDefinitionVersion(Integer caseDefinitionVersion) { ensureNotNull(NotValidException.class, "version", caseDefinitionVersion); ensurePositive(NotValidException.class, "version", caseDefinitionVersion.longValue()); this.version = caseDefinitionVersion; return this; }
public ProcessDefinitionQueryImpl processDefinitionVersion(Integer version) { ensureNotNull("version", version); ensurePositive("version", version.longValue()); this.version = version; return this; }
public DecisionDefinitionQuery decisionDefinitionVersion(Integer decisionDefinitionVersion) { ensureNotNull(NotValidException.class, "version", decisionDefinitionVersion); ensurePositive(NotValidException.class, "version", decisionDefinitionVersion.longValue()); this.version = decisionDefinitionVersion; return this; }
public DecisionDefinitionQuery decisionDefinitionVersion(Integer decisionDefinitionVersion) { ensureNotNull(NotValidException.class, "version", decisionDefinitionVersion); ensurePositive(NotValidException.class, "version", decisionDefinitionVersion.longValue()); this.version = decisionDefinitionVersion; return this; }
public CaseDefinitionQuery caseDefinitionVersion(Integer caseDefinitionVersion) { ensureNotNull(NotValidException.class, "version", caseDefinitionVersion); ensurePositive(NotValidException.class, "version", caseDefinitionVersion.longValue()); this.version = caseDefinitionVersion; return this; }
public SetProcessDefinitionVersionCmd(String processInstanceId, Integer processDefinitionVersion) { ensureNotEmpty("The process instance id is mandatory", "processInstanceId", processInstanceId); ensureNotNull("The process definition version is mandatory", "processDefinitionVersion", processDefinitionVersion); ensurePositive("The process definition version must be positive", "processDefinitionVersion", processDefinitionVersion.longValue()); this.processInstanceId = processInstanceId; this.processDefinitionVersion = processDefinitionVersion; }
public SetProcessDefinitionVersionCmd(String processInstanceId, Integer processDefinitionVersion) { ensureNotEmpty("The process instance id is mandatory", "processInstanceId", processInstanceId); ensureNotNull("The process definition version is mandatory", "processDefinitionVersion", processDefinitionVersion); ensurePositive("The process definition version must be positive", "processDefinitionVersion", processDefinitionVersion.longValue()); this.processInstanceId = processInstanceId; this.processDefinitionVersion = processDefinitionVersion; }
protected void validateInput() { EnsureUtil.ensureNotNull("workerId", workerId); EnsureUtil.ensureGreaterThanOrEqual("maxResults", maxResults, 0); for (TopicFetchInstruction instruction : fetchInstructions.values()) { EnsureUtil.ensureNotNull("topicName", instruction.getTopicName()); EnsureUtil.ensurePositive("lockTime", instruction.getLockDuration()); } } }
protected void validateInput() { EnsureUtil.ensureNotNull("workerId", workerId); EnsureUtil.ensureGreaterThanOrEqual("maxResults", maxResults, 0); for (TopicFetchInstruction instruction : fetchInstructions.values()) { EnsureUtil.ensureNotNull("topicName", instruction.getTopicName()); EnsureUtil.ensurePositive("lockTime", instruction.getLockDuration()); } } }