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>>
A
FlowableFutureJavaDelegate which has a ReadOnlyDelegateExecution as input and Map output data.
By default this will have a copy VariableScope.getVariables() as the input data
and will store all data from the output map as variables in the DelegateExecution- Author:
- Filip Hrisafov
-
Method Summary
Modifier and TypeMethodDescriptiondefault 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 Details
-
prepareExecutionData
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
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
-