protected Object resolveCollection(DelegateExecution execution) { Object collection = null; if (collectionExpression != null) { collection = collectionExpression.getValue(execution); } else if (collectionVariable != null) { collection = execution.getVariable(collectionVariable); } return collection; }
/** * 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(); }
@Override public void setValue(ELContext context, Object base, Object property, Object value) { if (base == null) { String variable = (String) property; if (variableScope.hasVariable(variable)) { variableScope.setVariable(variable, value); } } }
public void evaluate(DelegateExecution execution) { Object value = this.transformation.getValue(execution); execution.setVariable(this.getTarget(), value); } }
@Override public boolean isReadOnly(ELContext context, Object base, Object property) { if (base == null) { String variable = (String) property; return !variableScope.hasVariable(variable); } return true; }
public BpmnError(String errorCode, String message) { super(message); setErrorCode(errorCode); }
protected Integer getLoopVariable(DelegateExecution execution, String variableName) { Object value = execution.getVariableLocal(variableName); DelegateExecution parent = execution.getParent(); while (value == null && parent != null) { value = parent.getVariableLocal(variableName); parent = parent.getParent(); } return (Integer) (value != null ? value : 0); }
public static Expression getListenerFieldExpression(DelegateExecution execution, String fieldName) { FieldExtension fieldExtension = getListenerField(execution, fieldName); if (fieldExtension != null) { return createExpressionForField(fieldExtension); } return null; } }
public static Expression getFlowElementFieldExpression(DelegateExecution execution, String fieldName) { FieldExtension fieldExtension = getFlowElementField(execution, fieldName); if (fieldExtension != null) { return createExpressionForField(fieldExtension); } return null; }
protected DelegateExecution getMultiInstanceRootExecution(DelegateExecution executionEntity) { DelegateExecution multiInstanceRootExecution = null; DelegateExecution currentExecution = executionEntity; while (currentExecution != null && multiInstanceRootExecution == null && currentExecution.getParent() != null) { if (currentExecution.isMultiInstanceRoot()) { multiInstanceRootExecution = currentExecution; } else { currentExecution = currentExecution.getParent(); } } return multiInstanceRootExecution; }
/** * Returns whether or not the provided execution is being use for executing an {@link ExecutionListener}. */ public static boolean isExecutingExecutionListener(DelegateExecution execution) { return execution.getCurrentActivitiListener() != null; }
protected Map<String, Object> invokeCustomPropertiesResolver(DelegateExecution execution, CustomPropertiesResolver customPropertiesResolver) { Map<String, Object> customPropertiesMapToUse = null; if (customPropertiesResolver != null) { customPropertiesMapToUse = customPropertiesResolver.getCustomPropertiesMap(execution); } return customPropertiesMapToUse; }
/** * 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 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(); }