Community

Hi, I try to model a simple machine that can have breakdowns with the Delay-object of the enterprise library. The state of the machine is represented in a simple statechart: "idle", "working", "failed". Now the question: How can I stop the "processing" of an entity in the Delay-Object, when the statechart switches from "working" to "failed". I didn't find methods like Delay.stop(), Delay.resume(). Do I have to remember the remaining processing time for the entity in a variable, when breakdown begins? Or do I have to use the conveyor with set_speed(0) as a workaround? Thanks for your help and sorry for the beginner question Andreas
Hi Andreas, You can remove the required entity from the delay block using "delay.remove(delay.get(some_number))" method to stop processing and forward it to e.g. queue block through enter object: enter.take( delay.remove(delay.get(some_number)) ); To get the remaining processing time, please use the following function: delay.getRemainingTime(some_number)
Thanks for the hint, Pavel!