Context
Change Type: Preview
Product area: Analytics
Component: Streaming Analytics
Deployed at: eu.latest.cumulocity.com, apj.cumulocity.com, jp.cumulocity.com, cumulocity.com, us.cumulocity.com
Technical details
Build artifact: apama-in-c8y (27.104.0)
Internal ID: PAB-5192
Description
The Smart Function block now uses a single, dynamically sized block parameter instead of a fixed set of parameters for providing values to the smart function code.
Preview
The Smart Function block is in Public Preview, that is, it is not enabled by default and may be subject to change in the future.
Specifically, the block parameters params[0], params[1], params[2], params[3], and params[4] have been replaced by the Parameters for the Smart Function code parameter, which is of the list type. You can add any number of values to it.
The way to access the parameter values inside the smart function code remains the same:
let firstParam = context.params[0];
let secondParam = context.params[1];
Each value in the list can be either a fixed value or refer to a model parameter.
In existing models that use the Smart Function block, you must remove and re-add the block.