JuliaGeurs Posted May 8, 2019 Share Posted May 8, 2019 I want to assign a state variable to the batch members of a parent entity, is this possible? the reason for this: I have 2 types of entities (passengers and bags), they separate, then go through different processes and then are combined again. but since the passenger entities have to be combined with "their own" bags, a state (or something else) should be assigned which can be referenced as "match expression" in the combiner. is this the right way of modeling this type of process? or should i do this another way? Link to comment Share on other sites More sharing options...
GFurtado Posted May 8, 2019 Share Posted May 8, 2019 You can assign each entity an individual ModelEntity.Priority and set your Combiner to only match entities with the same priority. Check my attached model to see an example. Match Priority.spfx 1 Link to comment Share on other sites More sharing options...
JuliaGeurs Posted May 8, 2019 Author Share Posted May 8, 2019 Thank you for your help, though this does not work for my model. The amount of (member)entities that are batched differs (since the amount of bags that a passenger carries with them differs), i am able to make sure the parent entity "knows" how many bags they should batch with at the combiner, but i can only get 1 right member entity to batch. so what i would like to do is give all member entities that "belong to a passenger" a state which is the same as a state for the parent entity (passenger), so this can be used as "match expression". Link to comment Share on other sites More sharing options...
GFurtado Posted May 8, 2019 Share Posted May 8, 2019 If the parent entity knows how many bags belongs to they, you could set this expression in combiner's Batch Quantity property, something like my new attached model. Then you set the bag and passager IDs in the Ranking Rule property. Match Quantity.spfx Link to comment Share on other sites More sharing options...
Recommended Posts