Skip to main content


         This documentation site is for previous versions. Visit our new documentation site for current releases.      
 

Strategy methods

Updated on July 5, 2022

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

Have a question? Get answers now.

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

Did you find this content helpful?

Want to help us improve this content?

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