GuardRail warning for When rule

I am calling a When rule which accepts as a parameter producttype of type text .This when rule is calling another rule (SampleWhen) which also accepts the same parameter. However I am getting a warning while saving.

Parameters cannot be directly passed to a declarative rule .Verify that the decision rule, SampleWhen, handles empty values passed in for the parameters appropriately.

can someone suggest how to fix this warning.

@poojaD17139118

Hi, Instead of passing parameters directly to the when rule, consider using a different approach. For example, you could use a data transform or a utility function to preprocess the parameter before invoking the when rule.

@poojaD17139118 How to pass parameters to when rule from Data transform | Support Center