Interface StateBuilder


public interface StateBuilder
Builder interface for creating State instances. This is the initial builder in the state creation chain that requires an ID to be set before proceeding to the buildable state builder.

StateBuilder is typically used as part of the WorkflowDefinitionBuilder to create states within a workflow definition. It follows a fluent builder pattern where the ID must be set first before other properties can be configured.

Since:
1.0
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    id(StateId stateId)
    Sets the ID for the state and returns a buildable state builder for further configuration.
  • Method Details

    • id

      Sets the ID for the state and returns a buildable state builder for further configuration.
      Parameters:
      stateId - the unique identifier for the state
      Returns:
      a BuildableStateBuilder for configuring additional properties