public void notify(DelegateExecution execution) throws Exception { // Return value of expression is ignored expression.getValue(execution); }
protected int resolveLoopCardinality(ActivityExecution execution) { // Using Number since expr can evaluate to eg. Long (which is also the default for Juel) Object value = loopCardinalityExpression.getValue(execution); if (value instanceof Number) { return ((Number) value).intValue(); } else if (value instanceof String) { return Integer.valueOf((String) value); } else { throw LOG.expressionNotANumberException("loopCardinality", loopCardinalityExpression.getExpressionText()); } }
/** * Returns the expression text for this execution listener. Comes in handy if you want to * check which listeners you already have. */ public String getExpressionText() { return expression.getExpressionText(); } }
final Object expressionValue = defaultExpression.getValue(variableScope); if (type != null && expressionValue != null) { modelValue = type.convertFormValueToModelValue(expressionValue.toString()); variableScope.setVariable(variableName, modelValue); } else if (variableExpression != null) { variableExpression.setValue(modelValue, variableScope); } else { variableScope.setVariable(id, modelValue);
/** * Returns the expression text for this execution listener. Comes in handy if you want to * check which listeners you already have. */ public String getExpressionText() { return expression.getExpressionText(); }
public void notify(DelegateExecution execution) throws Exception { // Return value of expression is ignored expression.getValue(execution); }
protected int resolveLoopCardinality(ActivityExecution execution) { // Using Number since expr can evaluate to eg. Long (which is also the default for Juel) Object value = loopCardinalityExpression.getValue(execution); if (value instanceof Number) { return ((Number) value).intValue(); } else if (value instanceof String) { return Integer.valueOf((String) value); } else { throw LOG.expressionNotANumberException("loopCardinality", loopCardinalityExpression.getExpressionText()); } }
/** * Returns the expression text for this execution listener. Comes in handy if you want to * check which listeners you already have. */ public String getExpressionText() { return expression.getExpressionText(); } }
public void notify(DelegateCaseExecution caseExecution) throws Exception { // Return value of expression is ignored expression.getValue(caseExecution); }
protected boolean completionConditionSatisfied(ActivityExecution execution) { if (completionConditionExpression != null) { Object value = completionConditionExpression.getValue(execution); if (! (value instanceof Boolean)) { throw LOG.expressionNotBooleanException("completionCondition", completionConditionExpression.getExpressionText()); } Boolean booleanValue = (Boolean) value; LOG.multiInstanceCompletionConditionState(booleanValue); return booleanValue; } return false; }
/** * returns the expression text for this execution listener. Comes in handy if you want to * check which listeners you already have. */ public String getExpressionText() { return expression.getExpressionText(); } }
public void notify(DelegateCaseExecution caseExecution) throws Exception { // Return value of expression is ignored expression.getValue(caseExecution); }
protected boolean completionConditionSatisfied(ActivityExecution execution) { if (completionConditionExpression != null) { Object value = completionConditionExpression.getValue(execution); if (! (value instanceof Boolean)) { throw LOG.expressionNotBooleanException("completionCondition", completionConditionExpression.getExpressionText()); } Boolean booleanValue = (Boolean) value; LOG.multiInstanceCompletionConditionState(booleanValue); return booleanValue; } return false; }
/** * returns the expression text for this execution listener. Comes in handy if you want to * check which listeners you already have. */ public String getExpressionText() { return expression.getExpressionText(); }
protected String evaluateExpression(VariableScope variableScope) { return (String) scriptExpression.getValue(variableScope); }
protected void initializeTaskPriority(TaskEntity task, VariableScope variableScope) { Expression priorityExpression = taskDefinition.getPriorityExpression(); if (priorityExpression != null) { Object priority = priorityExpression.getValue(variableScope); if (priority != null) { if (priority instanceof String) { try { task.setPriority(Integer.valueOf((String) priority)); } catch (NumberFormatException e) { throw new ProcessEngineException("Priority does not resolve to a number: " + priority, e); } } else if (priority instanceof Number) { task.setPriority(((Number) priority).intValue()); } else { throw new ProcessEngineException("Priority expression does not resolve to a number: " + priorityExpression.getExpressionText()); } } } }
/** * returns the expression text for this task listener. Comes in handy if you want to * check which listeners you already have. */ public String getExpressionText() { return expression.getExpressionText(); }
public void notify(DelegateTask delegateTask) { expression.getValue(delegateTask); }
protected void initializeTaskPriority(TaskEntity task, VariableScope variableScope) { Expression priorityExpression = taskDefinition.getPriorityExpression(); if (priorityExpression != null) { Object priority = priorityExpression.getValue(variableScope); if (priority != null) { if (priority instanceof String) { try { task.setPriority(Integer.valueOf((String) priority)); } catch (NumberFormatException e) { throw new ProcessEngineException("Priority does not resolve to a number: " + priority, e); } } else if (priority instanceof Number) { task.setPriority(((Number) priority).intValue()); } else { throw new ProcessEngineException("Priority expression does not resolve to a number: " + priorityExpression.getExpressionText()); } } } }
/** * returns the expression text for this task listener. Comes in handy if you want to * check which listeners you already have. */ public String getExpressionText() { return expression.getExpressionText(); }