/** * Resolves the event name within the given scope. */ public String resolveExpressionOfEventName(VariableScope scope) { if (isExpressionAvailable()) { return (String) eventName.getValue(scope); } else { return null; } }
public Object getValue(VariableScope variableScope) { EnsureUtil.ensureNotNull("variableScope", variableScope); return expression.getValue(variableScope); }
/** * Resolves the event name within the given scope. */ public String resolveExpressionOfEventName(VariableScope scope) { if (isExpressionAvailable()) { return (String) eventName.getValue(scope); } else { return null; } }
public Object getValue(VariableScope variableScope) { EnsureUtil.ensureNotNull("variableScope", variableScope); return expression.getValue(variableScope); }
@Override public boolean evaluate(VariableScope scope, DelegateExecution execution) { Object result = expression.getValue(scope, execution); ensureNotNull("condition expression returns null", "result", result); ensureInstanceOf("condition expression returns non-Boolean", "result", result, Boolean.class); return (Boolean) result; }
@Override public boolean evaluate(VariableScope scope, DelegateExecution execution) { Object result = expression.getValue(scope, execution); ensureNotNull("condition expression returns null", "result", result); ensureInstanceOf("condition expression returns non-Boolean", "result", result, Boolean.class); return (Boolean) result; }
protected String getFailedJobRetryTimeCycle(JobEntity job, Expression expression) { String executionId = job.getExecutionId(); ExecutionEntity execution = null; if (executionId != null) { execution = fetchExecutionEntity(executionId); } Object value = null; if (expression == null) { return null; } try { value = expression.getValue(execution, execution); } catch (Exception e) { LOG.exceptionWhileParsingExpression(jobId, e.getCause().getMessage()); } if (value instanceof String) { return (String) value; } else { // default behavior return null; } }
protected String getFailedJobRetryTimeCycle(JobEntity job, Expression expression) { String executionId = job.getExecutionId(); ExecutionEntity execution = null; if (executionId != null) { execution = fetchExecutionEntity(executionId); } Object value = null; if (expression == null) { return null; } try { value = expression.getValue(execution, execution); } catch (Exception e) { LOG.exceptionWhileParsingExpression(jobId, e.getCause().getMessage()); } if (value instanceof String) { return (String) value; } else { // default behavior return null; } }
.getExpressionManager() .createExpression(expression) .getValue(null);
.getExpressionManager() .createExpression(expression) .getValue(null);
/** * Resolves the event name within the given scope. */ public String resolveExpressionOfEventName(VariableScope scope) { if (isExpressionAvailable()) { return (String) eventName.getValue(scope); } else { return null; } }
public Object getValue(VariableScope variableScope) { EnsureUtil.ensureNotNull("variableScope", variableScope); return expression.getValue(variableScope); }
@Override public boolean evaluate(VariableScope scope, DelegateExecution execution) { Object result = expression.getValue(scope, execution); ensureNotNull("condition expression returns null", "result", result); ensureInstanceOf("condition expression returns non-Boolean", "result", result, Boolean.class); return (Boolean) result; }
protected String getFailedJobRetryTimeCycle(JobEntity job, Expression expression) { String executionId = job.getExecutionId(); ExecutionEntity execution = null; if (executionId != null) { execution = fetchExecutionEntity(executionId); } Object value = null; if (expression == null) { return null; } try { value = expression.getValue(execution, execution); } catch (Exception e) { LOG.exceptionWhileParsingExpression(jobId, e.getCause().getMessage()); } if (value instanceof String) { return (String) value; } else { // default behavior return null; } }
.getExpressionManager() .createExpression(expression) .getValue(null);