question

Felipe G avatar image
0 Likes"
Felipe G asked Jason Lightfoot answered

How can I "delete" the elements on the processor when there's a breakdown?

I've got a model that it has a breakdown for 1 hour, but the element on processing, stills there counting TimeInSystem. Is there some way that this element go directly to a sink of elements don't processed, I'm trying with a Trigger applying an OnStop . I'm using a list flow there the elements wait in queue a certain time to be process, there is a maximum to wait, if it occurs this maximum they go to a sink, but if it's processing go to another sink. My idea is when there's a breakdown, the processor doesn't have items on it. Hope someone tell me what I can do. Thanks.

FlexSim 20.0.8
processflowprocessorsflexsim 20.0.8breakdowns
· 1
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

1 Answer

Jason Lightfoot avatar image
2 Likes"
Jason Lightfoot answered

In the MTBF/MTTR trigger "OnBreakDown" you can put something like this code snippet which assumes there's one item in a processor.:

  1. if(content(involved)) {
  2.     destroyeventsofobject(involved,0,0,NULL,involved.first);
  3.     moveobject(involved.first,Model.find("Queue2"));
  4. }


Example model attached.RemoveItemOnFailure.fsm


5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.