hi, this is context: i am making a model which has conveyors where maximum one carton could be onto one conveyor in any time. it is working correctly with 3 conveyors, but the process flow is already quite big (please see the picture). then before extending it to 40 conveyors, i am planning to convert the process flow to code as much as possible, in order to avoid to have a huge final process flow, difficult to debug/modify. just to give the context, the details of that are not relevant for this question.
to achieve this "conversion from process flow to code", my questions would be:
- how to capture/release a resource by using code?
- how to "wait for event" in code?