I have the following rule that's giving me problems:
This rule is being used as an Execution Rule in a subaction of type 'loop over collection'. The collection that is being looped over (TagsCollection_Stage which is a property of MainObject) has an object named Tags_Stage and this object has a UnitNumber property. The purpose of this rule is to return a True value if the UnitNumber in Tags_Stage doesn't exist in another collection under MainObject named UnitsCollection. UnitCollection's object is Units, which also has a property named UnitNumber. If UnitNumber from Tags_Stage doesn't exist in UnitCollection's Unit object then it will be added to UnitsCollection via an add transaction. This rule is not working. I think it's because the last line (Tags_Stage > Unit Number) is running under the context of UnitsCollection instead of TagsCollection_Stage, so the rule can't determine which Tags_Stage object should be used. It appears the reason is because COLLECTION_FIND has switched the rule context to the collection it is searching. How do I get COLLECTION_FIND's search criteria to compare the UnitNumber from UnitsCollection with the UnitNumber from the collection that's being looped over (TagsCollection_Stage)?
Thanks!!
Tim
