LinkedIn
Copied!

Table of Contents

Strategy methods

Version:

Only available versions of this content are shown in the dropdown

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?

Have a question? Get answers now.

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