You can still use Process Flow, by creating a token by code. The relevant methods can be seen for example when selecting to use a SubFlow in a fixed resource's transporter field.


To do everything in code you could
- write the time an equipment will be available again to a label on it, then use one of the methods described by Jason and Jörg to re-run the code at that time (of course only possible if the time when the objects becomes available can be known beforehand, so it might be difficult in a model with constand flow)
- build the logic "in reverse". Have the relevant equipment send a message to the tank whenever it becomes available. The passing mark code would set a label on the tank if the equipment is not available at that time, which then causes it to evaluate the refill code when it next receive a message.