Object current = param(1); treenode activity = param(2); Token token = param(3); treenode processFlow = ownerobject(activity); int bladeType = token.bladeType; if (bladeType = 1) {treenode thenode = TrackedVariable("Blade Type 1 Closed"); double value = 1; inc(thenode,value); } if (bladeType = 2) {treenode thenode = TrackedVariable("Blade Type 2 Closed"); double value = 1; inc(thenode,value); } if (bladeType = 3) {treenode thenode = TrackedVariable("Blade Type 3 Closed"); double value = 1; inc(thenode,value); }
When tokens of a certain "bladeType" finish processing, I have this custom code to count the number of tokens of that blade type that flow through this block and increment the tracked variable by 1. However, each time a token flows through this block, each tracked variable increases. Any ideas what I am missing?