/** * 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(); }
/** * 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(); }
/** * 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(); } }
/** * 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(); }
/** * 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(); } }
/** * 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(); }
/** * 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(); }
/** * 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(); }
protected int resolveLoopCardinality(DelegateExecution 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 new ActivitiIllegalArgumentException("Could not resolve loopCardinality expression '" + loopCardinalityExpression.getExpressionText() + "': not a number nor number String"); } }
@Override public void notify(DelegateExecution execution) { validateParameters(); ScriptingEngines scriptingEngines = Context.getProcessEngineConfiguration().getScriptingEngines(); Object result = scriptingEngines.evaluate(script.getExpressionText(), language.getExpressionText(), execution); if (resultVariable != null) { execution.setVariable(resultVariable.getExpressionText(), result); } }
protected boolean completionConditionSatisfied(DelegateExecution execution) { if (completionConditionExpression != null) { Object value = completionConditionExpression.getValue(execution); if (!(value instanceof Boolean)) { throw new ActivitiIllegalArgumentException("completionCondition '" + completionConditionExpression.getExpressionText() + "' does not evaluate to a boolean value"); } Boolean booleanValue = (Boolean) value; if (LOGGER.isDebugEnabled()) { LOGGER.debug("Completion condition of multi-instance satisfied: {}", booleanValue); } return booleanValue; } return false; }
public void notify(DelegateTask delegateTask) { validateParameters(); ScriptingEngines scriptingEngines = Context.getProcessEngineConfiguration().getScriptingEngines(); Object result = scriptingEngines.evaluate(script.getExpressionText(), language.getExpressionText(), delegateTask, autoStoreVariables); if (resultVariable != null) { delegateTask.setVariable(resultVariable.getExpressionText(), result); } }
public static boolean shouldSkipFlowElement(DelegateExecution execution, Expression skipExpression) { Object value = skipExpression.getValue(execution); if (value instanceof Boolean) { return ((Boolean) value).booleanValue(); } else { throw new ActivitiIllegalArgumentException("Skip expression does not resolve to a boolean: " + skipExpression.getExpressionText()); } } }
public static boolean shouldSkipFlowElement(CommandContext commandContext, DelegateExecution execution, String skipExpressionString) { Expression skipExpression = commandContext.getProcessEngineConfiguration().getExpressionManager().createExpression(skipExpressionString); Object value = skipExpression.getValue(execution); if (value instanceof Boolean) { return ((Boolean) value).booleanValue(); } else { throw new ActivitiIllegalArgumentException("Skip expression does not resolve to a boolean: " + skipExpression.getExpressionText()); } }
protected Expression getExpression(DelegateExecution execution, Expression var) { String variable = (String) execution.getVariable(var.getExpressionText()); return Context.getProcessEngineConfiguration().getExpressionManager().createExpression(variable); }
@SuppressWarnings("rawtypes") protected Collection resolveAndValidateCollection(DelegateExecution execution) { Object obj = resolveCollection(execution); if (collectionExpression != null) { if (!(obj instanceof Collection)) { throw new ActivitiIllegalArgumentException(collectionExpression.getExpressionText() + "' didn't resolve to a Collection"); } } else if (collectionVariable != null) { if (obj == null) { throw new ActivitiIllegalArgumentException("Variable " + collectionVariable + " is not found"); } if (!(obj instanceof Collection)) { throw new ActivitiIllegalArgumentException("Variable " + collectionVariable + "' is not a Collection"); } } else { throw new ActivitiIllegalArgumentException("Couldn't resolve collection expression nor variable reference"); } return (Collection) obj; }
if (taskElementProperties != null && taskElementProperties.has(DynamicBpmnConstants.SERVICE_TASK_EXPRESSION)) { String overrideExpression = taskElementProperties.get(DynamicBpmnConstants.SERVICE_TASK_EXPRESSION).asText(); if (StringUtils.isNotEmpty(overrideExpression) && !overrideExpression.equals(expression.getExpressionText())) { expression = Context.getProcessEngineConfiguration().getExpressionManager().createExpression(overrideExpression);
if (taskElementProperties != null && taskElementProperties.has(DynamicBpmnConstants.SERVICE_TASK_DELEGATE_EXPRESSION)) { String overrideExpression = taskElementProperties.get(DynamicBpmnConstants.SERVICE_TASK_DELEGATE_EXPRESSION).asText(); if (StringUtils.isNotEmpty(overrideExpression) && !overrideExpression.equals(expression.getExpressionText())) { expression = Context.getProcessEngineConfiguration().getExpressionManager().createExpression(overrideExpression);
/** * 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(); } }
/** * 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(); }