I’ve been using the Workflow analyzer lately, and I’ve notice a problem with ST-USG-009 rule.
Mainly that this rule is violated when I use variables to map arguments from one Workflow to another.
Should I switch the way that I map values from one workflow to another, or should this rule be changed in some way?
Yes, but once it is mapped, is the variable used in any subsequent activity? if not, it will be classed as ‘unused’. For why would you map to something for no follow on purpose?
I also feel bothered with this in my Error List.
Sometimes I pass the Config dictionary variable to different Workflows without using it to the Main WF,
thus this error remains.
Well, it does triggers me to perform “Remove Unused Variables” in the ribbon so it is still helpful for me.
Fortunately, when I use this button, it does not remove the said variables passed around as WF arguments.
Since the “Remove Unused Variables” properly detects them as used variables,
I am hoping that the same will be done for this rule.
In addition, this rule is also violated
if I just used the variables in the MultipleAssign activity.
Using them individually using the Assign activity does not generate error.