A strategy can be a reusable or centralized piece of logic that can be referred to by one or more strategies. To achieve this, you use the following design pattern:
- The strategy referred to by the sub strategy component has the external input option switched on (context menu). This external input connects to the starting components that define the reusable chain of components.
- In another strategy, the sub strategy refers to the reusable strategy and it is driven by other components. When you run this strategy, the use of this sub strategy components results in effectively replacing the sub strategy component with the chain of components that are propagated through the referenced strategy.
Strategy design