/**Custom Code*/ Object current = param(1); treenode activity = param(2); Token token = param(3); treenode processFlow = ownerobject(activity); string WType = token.Wtype; Variant SwitchCode = 0; Table WTypeTable = Table("WindowTypes"); for (int i = 1; i <= Table("WindowTypes").numRows; i++) { string check = Table("WindowTypes")[i][3]; int test = comparetext(WType, check); if (test == 1 ) { SwitchCode = WTypeTable[i][1]; break; } } token.WTypeVal = SwitchCode;