Class WorkflowEntity.StepBuilder

Object
kalix.javasdk.workflowentity.WorkflowEntity.StepBuilder
Enclosing class:
WorkflowEntity<S>

public static class WorkflowEntity.StepBuilder extends Object
  • Constructor Details

    • StepBuilder

      public StepBuilder(String name)
  • Method Details

    • call

      @ApiMayChange public <Input, DefCallInput, DefCallOutput> WorkflowEntity.StepBuilder.CallStepBuilder<Input,DefCallInput,DefCallOutput> call(Function<Input,DeferredCall<DefCallInput,DefCallOutput>> callFactory)
      Build a step action with a call to an existing Kalix component via DeferredCall.
      Type Parameters:
      Input - Input for deferred call factory, provided by transition method.
      DefCallInput - Input for deferred call.
      DefCallOutput - Output of deferred call.
      Parameters:
      callFactory - Factory method for creating deferred call.
      Returns:
      Step builder.
    • call

      @ApiMayChange public <DefCallInput, DefCallOutput> WorkflowEntity.StepBuilder.CallStepBuilder<Void,DefCallInput,DefCallOutput> call(Supplier<DeferredCall<DefCallInput,DefCallOutput>> callSupplier)
      Build a step action with a call to an existing Kalix component via DeferredCall.
      Type Parameters:
      DefCallInput - Input for deferred call.
      DefCallOutput - Output of deferred call.
      Parameters:
      callSupplier - Factory method for creating deferred call.
      Returns:
      Step builder.
    • asyncCall

      @ApiMayChange public <Input, Output> WorkflowEntity.StepBuilder.AsyncCallStepBuilder<Input,Output> asyncCall(Function<Input,CompletionStage<Output>> callFactory)
      Build a step action with an async call.
      Type Parameters:
      Input - Input for async call factory, provided by transition method.
      Output - Output of async call.
      Parameters:
      callFactory - Factory method for creating async call.
      Returns:
      Step builder.
    • asyncCall

      @ApiMayChange public <Output> WorkflowEntity.StepBuilder.AsyncCallStepBuilder<Void,Output> asyncCall(Supplier<CompletionStage<Output>> callSupplier)
      Build a step action with an async call.
      Type Parameters:
      Output - Output of async call.
      Parameters:
      callSupplier - Factory method for creating async call.
      Returns:
      Step builder.