Class AbstractJavaCallExecutor<T,V>

java.lang.Object
io.serverlessworkflow.impl.executors.func.AbstractJavaCallExecutor<T,V>
All Implemented Interfaces:
io.serverlessworkflow.impl.executors.CallableTask
Direct Known Subclasses:
JavaContextFunctionCallExecutor, JavaFilterFunctionCallExecutor, JavaFunctionCallExecutor, JavaLoopFunctionCallExecutor, JavaLoopFunctionIndexCallExecutor

public abstract class AbstractJavaCallExecutor<T,V> extends Object implements io.serverlessworkflow.impl.executors.CallableTask
  • Field Details

  • Constructor Details

    • AbstractJavaCallExecutor

      protected AbstractJavaCallExecutor()
    • AbstractJavaCallExecutor

      protected AbstractJavaCallExecutor(Optional<Class<T>> inputClass, Optional<Class<V>> outputClass)
  • 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:
      apply in interface io.serverlessworkflow.impl.executors.CallableTask
    • callJavaFunction

      protected abstract V callJavaFunction(io.serverlessworkflow.impl.WorkflowContext workflowContext, io.serverlessworkflow.impl.TaskContext taskContext, T input)
    • model2Input

      protected T model2Input(io.serverlessworkflow.impl.WorkflowModel model)
    • convertTypedResponse

      protected Object convertTypedResponse(V obj)
    • convertResponse

      protected Object convertResponse(Object obj)
    • output2Model

      protected io.serverlessworkflow.impl.WorkflowModel output2Model(io.serverlessworkflow.impl.WorkflowModelFactory modelFactory, io.serverlessworkflow.impl.WorkflowModel input, Object result)