SEVAR1 Posted November 24, 2016 Share Posted November 24, 2016 Hello, In my model, there are multiple servers for which a secondary resource seize is required. Different pools of potential secondary resources are listed in Object Lists. I would like any given server to pick from a different list depending on the value of a Property, For example, if Property==A, then the Server should pick from the Object List "A", if Property==B, then from List "B". I tried changing the "Object List Name" expression to become a conditional one, but it did not work. Should I instead try to keep the List name the same, while changing the members of this list conditionally? Is it something that can be done through an Add-On Process? Thanks a lot for your time! Link to comment Share on other sites More sharing options...
dsturrock Posted November 25, 2016 Share Posted November 25, 2016 One approach may be to have a column of type ObjectList in a table. Lets call that column SecondaryResourceList and call the table Table1. Then when you need a secondary resource, you choose SelectFromList and specify the list name as Table1.SecondaryResourceList. The key to making this work is that the entity must already be associated with the correct row in the table. You can do that association many ways... --when the entity is created --at anytime using a SetRow step (e.g. when you determine that an entity needs the list specified in Row 2, do a SetRow: Table1, 2) --using a Search step (perhaps searching through other table columns) Of course you can always do it in processes: For example, if Decide: Property==A, then Seize ListA, Else Decide: Property==B, then Seize from ListB, ... Or, combining these approaches: For example, if Decide: Property==A, then SetRow: Table1, 1, Else Decide: Property==B, then SetRow: Table1, 2, ... Link to comment Share on other sites More sharing options...
Recommended Posts