fsy5393 Posted July 25, 2014 Share Posted July 25, 2014 I'm trying to model a transportation behavior where for every 20 entity(shipping size) accumulated at a node, I want a transporter to come pick the entities up (exactly 20 entities). However, since the requests are initiated from the same node, a single transporter comes and picks up everything if there are more than one party at the node (one party = 20 entities). But if I have two parties accumulated at the node, I want two transporters. I know setting the transporters' capacity to 20 will solve the issue, but the shipping size property can be different among nodes and I'd like this behavior to work even if the transporter's capacity is set to infinity. Any suggestions? Thanks, Selin Link to comment Share on other sites More sharing options...
dsturrock Posted July 25, 2014 Share Posted July 25, 2014 Here is an example from our training course that illustrates a similar problem. In this case it is a librarian who waits until 10 books are dropped off, then picks up ALL waiting books up to his capacity. But I expect you can use this to modify for your situation.Workshop08c-Librarian.spfx Link to comment Share on other sites More sharing options...
fsy5393 Posted August 7, 2014 Author Share Posted August 7, 2014 Thank you, I tried to create a logic that is triggered when the transporter is evaluating the seize request, but I couldn't make it accept the parts up to the desired amount and reject the rest. Instead, I dynamically assign the vehicle capacity, where the capacity is adjusted (to the desired shipment amount) every time a transporter is allocated. I'm not sure if this is a good way to do it, but it seems to be working fine. Link to comment Share on other sites More sharing options...
Recommended Posts