Class AbstractJavaCallExecutor<T>
java.lang.Object
io.serverlessworkflow.impl.executors.func.AbstractJavaCallExecutor<T>
- All Implemented Interfaces:
io.serverlessworkflow.impl.executors.CallableTask
- Direct Known Subclasses:
JavaContextFunctionCallExecutor,JavaFilterFunctionCallExecutor,JavaFunctionCallExecutor,JavaLoopFunctionCallExecutor,JavaLoopFunctionIndexCallExecutor
public abstract class AbstractJavaCallExecutor<T>
extends Object
implements io.serverlessworkflow.impl.executors.CallableTask
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedprotectedAbstractJavaCallExecutor(Optional<Class<T>> inputClass) -
Method Summary
Modifier and TypeMethodDescriptionCompletableFuture<io.serverlessworkflow.impl.WorkflowModel>apply(io.serverlessworkflow.impl.WorkflowContext workflowContext, io.serverlessworkflow.impl.TaskContext taskContext, io.serverlessworkflow.impl.WorkflowModel input) protected abstract ObjectcallJavaFunction(io.serverlessworkflow.impl.WorkflowContext workflowContext, io.serverlessworkflow.impl.TaskContext taskContext, T input) protected ObjectconvertResponse(Object obj) protected Tmodel2Input(io.serverlessworkflow.impl.WorkflowModel model) protected io.serverlessworkflow.impl.WorkflowModeloutput2Model(io.serverlessworkflow.impl.WorkflowModelFactory modelFactory, io.serverlessworkflow.impl.WorkflowModel input, Object result)
-
Field Details
-
inputClass
-
-
Constructor Details
-
AbstractJavaCallExecutor
protected AbstractJavaCallExecutor() -
AbstractJavaCallExecutor
-
-
Method Details
-
apply
public CompletableFuture<io.serverlessworkflow.impl.WorkflowModel> apply(io.serverlessworkflow.impl.WorkflowContext workflowContext, io.serverlessworkflow.impl.TaskContext taskContext, io.serverlessworkflow.impl.WorkflowModel input) - Specified by:
applyin interfaceio.serverlessworkflow.impl.executors.CallableTask
-
callJavaFunction
-
model2Input
-
convertResponse
-
output2Model
protected io.serverlessworkflow.impl.WorkflowModel output2Model(io.serverlessworkflow.impl.WorkflowModelFactory modelFactory, io.serverlessworkflow.impl.WorkflowModel input, Object result)
-