Interface HasId<ID>

Type Parameters:
ID - the type of the identifier
All Known Subinterfaces:
Capability, Condition, ConditionalResult, Conditions, DefaultResult, Fork, Function, Join, Model<SELF,ID>, MutableWorkflowDefinition, Register, Result<E>, State, Transition, Validator, WorkflowDefinition

public interface HasId<ID>
Interface for objects that have a unique identifier. HasId provides the contract for accessing the identifier of workflow model elements, ensuring that all identifiable objects in the workflow system can be uniquely referenced.

Identifiers are essential for workflow model elements as they provide a way to uniquely reference and distinguish between different instances of the same type of element. This is particularly important for states, transitions, functions, and other workflow components.

The identifier type is generic, allowing different types of identifiers to be used for different model elements (e.g., StateId, TransitionId, etc.).

Since:
1.0
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the unique identifier of this object.
  • Method Details

    • getId

      ID getId()
      Returns the unique identifier of this object.
      Returns:
      the identifier of this object