Skip to main content

 –

Strategy methods

Suggest edit Updated on March 11, 2021

Use a rule-based API to get details about the propositions and properties in your strategies.

The following methods support the use of strategies in activities:

  • Returning a list of propositions

    Use the Call instruction with the Rule-Decision-Strategy.pyGetStrategyPropositions activity to obtain the list of propositions returned by the strategy.

  • Returning a list of properties

    Use the Call instruction with the Rule-Decision-Strategy.pyGetStrategyProperties activity to obtain the list of properties that are used by components in the strategy. Duplicate values are ignored.

  • Computing segment logic

    Use the Call instruction with the Rule-Decision-Strategy.pyComputeSegmentLogic activity to obtain the list of segments that can be returned by the strategy. The segment logic computation goes through the chain of component connections, gathering information about segment components and logical connections between them. If a substrategy component is involved, segments of the substrategy are also gathered. The result is represented in a tree structure that contains the resulting classes: Embed-AST (base class), Embed-AST-Operator-Boolean

Did you find this content helpful? YesNo

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.

Ready to crush complexity?

Experience the benefits of Pega Community when you log in.

We'd prefer it if you saw us at our best.

Pega.com is not optimized for Internet Explorer. For the optimal experience, please use:

Close Deprecation Notice
Contact us