Interface WorkflowExecutionSignaledEventAttributes.Builder

All Superinterfaces:
Buildable, CopyableBuilder<WorkflowExecutionSignaledEventAttributes.Builder,WorkflowExecutionSignaledEventAttributes>, SdkBuilder<WorkflowExecutionSignaledEventAttributes.Builder,WorkflowExecutionSignaledEventAttributes>, SdkPojo
Enclosing class:
WorkflowExecutionSignaledEventAttributes

public static interface WorkflowExecutionSignaledEventAttributes.Builder extends SdkPojo, CopyableBuilder<WorkflowExecutionSignaledEventAttributes.Builder,WorkflowExecutionSignaledEventAttributes>
  • Method Details

    • signalName

      The name of the signal received. The decider can use the signal name and inputs to determine how to the process the signal.

      Parameters:
      signalName - The name of the signal received. The decider can use the signal name and inputs to determine how to the process the signal.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • input

      The inputs provided with the signal. The decider can use the signal name and inputs to determine how to process the signal.

      Parameters:
      input - The inputs provided with the signal. The decider can use the signal name and inputs to determine how to process the signal.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • externalWorkflowExecution

      WorkflowExecutionSignaledEventAttributes.Builder externalWorkflowExecution(WorkflowExecution externalWorkflowExecution)

      The workflow execution that sent the signal. This is set only of the signal was sent by another workflow execution.

      Parameters:
      externalWorkflowExecution - The workflow execution that sent the signal. This is set only of the signal was sent by another workflow execution.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • externalWorkflowExecution

      default WorkflowExecutionSignaledEventAttributes.Builder externalWorkflowExecution(Consumer<WorkflowExecution.Builder> externalWorkflowExecution)

      The workflow execution that sent the signal. This is set only of the signal was sent by another workflow execution.

      This is a convenience method that creates an instance of the WorkflowExecution.Builder avoiding the need to create one manually via WorkflowExecution.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to externalWorkflowExecution(WorkflowExecution).

      Parameters:
      externalWorkflowExecution - a consumer that will call methods on WorkflowExecution.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • externalInitiatedEventId

      WorkflowExecutionSignaledEventAttributes.Builder externalInitiatedEventId(Long externalInitiatedEventId)

      The ID of the SignalExternalWorkflowExecutionInitiated event corresponding to the SignalExternalWorkflow decision to signal this workflow execution.The source event with this ID can be found in the history of the source workflow execution. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event. This field is set only if the signal was initiated by another workflow execution.

      Parameters:
      externalInitiatedEventId - The ID of the SignalExternalWorkflowExecutionInitiated event corresponding to the SignalExternalWorkflow decision to signal this workflow execution.The source event with this ID can be found in the history of the source workflow execution. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event. This field is set only if the signal was initiated by another workflow execution.
      Returns:
      Returns a reference to this object so that method calls can be chained together.