Interface DestinationId

All Superinterfaces:
ModelId
All Known Implementing Classes:
ForkId, JoinId, StateId

public interface DestinationId extends ModelId
Represents a destination ID that can point to different types of workflow elements. DestinationId is used in results to specify where a transition should lead, whether it's a state, a fork, or a join.
Since:
1.0
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    Gets the optional name of this destination ID.
    Gets the value of this destination ID.
    default boolean
    Checks if this destination ID represents a fork.
    default boolean
    Checks if this destination ID represents a join.
    default boolean
    Checks if this destination ID represents a state.
  • Method Details

    • getValue

      String getValue()
      Gets the value of this destination ID.
      Specified by:
      getValue in interface ModelId
      Returns:
      the destination ID value
    • getName

      Optional<String> getName()
      Gets the optional name of this destination ID.
      Returns:
      an Optional containing the name if present
    • isJoinId

      default boolean isJoinId()
      Checks if this destination ID represents a join.
      Returns:
      true if this is a join ID, false otherwise
    • isStateId

      default boolean isStateId()
      Checks if this destination ID represents a state.
      Returns:
      true if this is a state ID, false otherwise
    • isForkId

      default boolean isForkId()
      Checks if this destination ID represents a fork.
      Returns:
      true if this is a fork ID, false otherwise