public class ExpressionMapping<T> extends Object implements InputMapping<T>
NB! This is a home-built Expression support class (can be used by implementing the Expression interface), it doesn't have anything to do with the Expression Language support (@see ExpressionLanguageMapping). At the time of writing, this InputMapping is actually not usable via the workflow engine API (DSL).
A possible usage of this class is to dynamically evaluate the delay time of a
CatchTimer event node with custom logic based on GraphInstance
attribute's (e.g. a client id).
| Constructor and Description |
|---|
ExpressionMapping(Expression<T> expression,
InputMapping<?>... argumentMappings) |
| Modifier and Type | Method and Description |
|---|---|
T |
evaluate(GraphInstance instance) |
ArrayMapping |
getArgumentMapping() |
Expression<T> |
getExpression() |
public ExpressionMapping(Expression<T> expression, InputMapping<?>... argumentMappings)
public Expression<T> getExpression()
public ArrayMapping getArgumentMapping()
public T evaluate(GraphInstance instance)
evaluate in interface InputMapping<T>Copyright © 2018. All rights reserved.