setExecutionAmount - Cognigy Documentation

Syntax

setExecutionAmount(nodeId, value)

Description

Updates the execution count for a Node with the given nodeId.

Parameters:

Returns: void

Example

// Set the execution count to 5 for the Node with the nodeId "c4c5c267-55d8-44ae-a123-f351d237f496"
setExecutionAmount("c4c5c267-55d8-44ae-a123-f351d237f496", 5);