Package org.flowable.engine.delegate
Interface MapBasedFlowableFutureJavaDelegate
-
- All Superinterfaces:
FlowableFutureJavaDelegate<ReadOnlyDelegateExecution,Map<String,Object>>,FutureJavaDelegate<Map<String,Object>>
public interface MapBasedFlowableFutureJavaDelegate extends FlowableFutureJavaDelegate<ReadOnlyDelegateExecution,Map<String,Object>>
AFlowableFutureJavaDelegatewhich has aReadOnlyDelegateExecutionas input andMapoutput data. By default this will have a copyVariableScope.getVariables()as the input data and will store all data from the output map as variables in theDelegateExecution- Author:
- Filip Hrisafov
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default voidafterExecution(DelegateExecution execution, Map<String,Object> executionData)Method invoked with the result fromFlowableFutureJavaDelegate.execute(Object).default ReadOnlyDelegateExecutionprepareExecutionData(DelegateExecution execution)Method invoked before doing the execution to extract needed that from the execution on the main thread.-
Methods inherited from interface org.flowable.engine.delegate.FlowableFutureJavaDelegate
execute, execute
-
-
-
-
Method Detail
-
prepareExecutionData
default ReadOnlyDelegateExecution prepareExecutionData(DelegateExecution execution)
Description copied from interface:FlowableFutureJavaDelegateMethod invoked before doing the execution to extract needed that from the execution on the main thread. This should be used to prepare and extract data from the execution before doing the execution in a different thread.- Specified by:
prepareExecutionDatain interfaceFlowableFutureJavaDelegate<ReadOnlyDelegateExecution,Map<String,Object>>- Parameters:
execution- the execution from which to extract data- Returns:
- the data for the delegate
-
afterExecution
default void afterExecution(DelegateExecution execution, Map<String,Object> executionData)
Description copied from interface:FlowableFutureJavaDelegateMethod invoked with the result fromFlowableFutureJavaDelegate.execute(Object). This should be used to set data on theDelegateExecution. This is on the same thread asFlowableFutureJavaDelegate.prepareExecutionData(DelegateExecution)and participates in the process transaction.- Specified by:
afterExecutionin interfaceFlowableFutureJavaDelegate<ReadOnlyDelegateExecution,Map<String,Object>>- Specified by:
afterExecutionin interfaceFutureJavaDelegate<Map<String,Object>>- Parameters:
execution- the execution to which data can be setexecutionData- the execution data
-
-