public class ContextUtil extends Object
Constructor and Description |
---|
ContextUtil() |
Modifier and Type | Method and Description |
---|---|
<R,T> R |
evaluateSpelForCtx(String expression,
org.flowable.engine.delegate.DelegateExecution execution,
T context)
Allows to perform string interpolation like '/ais/#{ctx.getName}' using the process context.
|
<R,T> R |
evaluateSpelForCtx(String expression,
org.flowable.engine.delegate.DelegateExecution execution,
T context,
Class<R> resultClass)
Allows to perform string interpolation like '/ais/#{ctx.getName}' using the process context of defined class.
|
<T> void |
getAndUpdateContext(org.flowable.engine.delegate.DelegateExecution execution,
Consumer<T> contextUpdater)
Get and update context of current execution in single operation with retry support for optimistic exceptions.
|
<T> T |
getContext(org.flowable.engine.delegate.DelegateExecution execution,
Class<T> ctxType)
Read context from current execution.
|
public <T> T getContext(org.flowable.engine.delegate.DelegateExecution execution, Class<T> ctxType)
public <T> void getAndUpdateContext(org.flowable.engine.delegate.DelegateExecution execution, Consumer<T> contextUpdater)
public <R,T> R evaluateSpelForCtx(String expression, org.flowable.engine.delegate.DelegateExecution execution, T context)
Copyright © 2020. All rights reserved.