piedz Posted October 3, 2022 Share Posted October 3, 2022 Hello, I'm working on a problem where at some point a worker will transport a specific amount of pallets. Whereafter these pallets are processed by a server and a server wil process them. Once processed, a different worker (or the same worker) will move the pallets to the next server. How do I save these entities as a batch and let workers know how much pallets they can process? At the moment I have two approaches. One where I create a 'batch' as an entity and assign to it the amount of pallets. The 'problem' in that case is that I do need to count the amount of pallets at a server, since it has a certain capacity. And sometimes an initial batch whitch comes from a truck needs to be split to fit the capacity of workers. But once this would be fixed, the worker will always transport the right amount of pallets. A second approach that I have tried is to create the pallet entities normally, and assign a 'PalletHistory' in the modelEntity properties, but I find that after processing I can't find this palletHistory for the workers to get a sign of how many pallets to transport. Do any of you guys have an idea how I can approach this? Greetings Link to comment Share on other sites More sharing options...
MauricioBiolato Posted October 5, 2022 Share Posted October 5, 2022 Hi Piet, the easiest way I see is to add a state variable to the entity (called: st_batchNum). This way you can assign this BatchNum to each pallet. Later you can find them all together with a search step using that st:BatchNum as a match condition. Rds. Link to comment Share on other sites More sharing options...
piedz Posted October 6, 2022 Author Share Posted October 6, 2022 Thank you! I will try this Link to comment Share on other sites More sharing options...
piedz Posted October 13, 2022 Author Share Posted October 13, 2022 So I have tried doing this, but i can't quite get the workers to pick up the right trolleys. The capacity of the worker is too big and it will pick up more than the batch sometimes. In the logic i tried to use 'search', but can't quite seem to find the right expression. Any ideas? Link to comment Share on other sites More sharing options...
MauricioBiolato Posted October 14, 2022 Share Posted October 14, 2022 Hope this helps Rds Search Batch example.spfx Link to comment Share on other sites More sharing options...
Recommended Posts