- Type Parameters:
T- the type of the child model elementP- the type of the parent model element
- All Known Subinterfaces:
Capability,Condition,ConditionalResult,ConditionGroup,DefaultResult,Fork,Function,Join,Register,State,Transition,Validator
Interface for model elements that have a parent-child relationship with other model elements.
HasParent provides the contract for establishing and managing hierarchical relationships in the
workflow model structure.
- Since:
- 1.0
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionwithParent(P parent) Creates a new instance of this model element with the specified parent.
-
Method Details
-
withParent
Creates a new instance of this model element with the specified parent. This method enables changing the parent-child relationship without modifying the original instance.- Parameters:
parent- the new parent for this model element- Returns:
- a new instance with the specified parent
-