Get Dynamic Node Outcomes
getDynamicNodeOutcomesCalculate dynamic outcomes for configurable nodes like PageNode or ChoiceCollectorNode based on their configuration to determine journey connections.
Instructions
Calculate the dynamic outcomes for a node based on its configuration. Use this for nodes whose outcomes depend on their config, such as: PageNode (outcomes depend on child nodes - pass { nodes: [...] }), ChoiceCollectorNode (outcomes depend on choices array - pass { choices: [...] }), and similar configurable nodes. This helps determine what connections to wire when building journeys.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| realm | Yes | The realm to query | |
| nodeType | Yes | The node type (e.g., "PageNode", "ChoiceCollectorNode") | |
| config | Yes | Node configuration object. For PageNode, use { nodes: [{ nodeType, _properties }...] }. For ChoiceCollectorNode, use { choices: ["option1", "option2", ...] }. Check the node schema via getNodeTypeDetails to understand required config properties. |