Destroying an entity if a failure occurs during service

General Simio discussions. THIS IS *NOT* A GOOD PLACE FOR SUPPORT QUESTIONS.
To limit spam this and all Public Forums have very limited ability to attach files. We recommend that support issues and more technical topics be initiated inside one of the Simio Insider (SI) forums below where you can attach your model and see example solutions. See above Welcome forum to join Simio Insiders.
Post Reply
reedrsmith
Posts: 3
Joined: Mon Feb 08, 2016 2:57 pm

Destroying an entity if a failure occurs during service

Post by reedrsmith » Tue Feb 23, 2016 6:59 pm

Hello, I am modeling a range wherein if a workstation encounters a failure while processing an entity, that entity needs to be destroyed and can't simply wait for the workstation to be repaired and then continue processing.

The real world application models a failure of a critical piece of gear on boat, which would have to cancel the mission and return to port for repairs. In my case the mission (the entity) cannot wait for the repair, it must be canceled and start the whole process again later.

I am really struggling to implement a process where the entity encountering the failure is destroyed when the failure occurs instead of just waiting around.

Thanks for any help anyone can offer!

willem
Posts: 105
Joined: Wed Jul 03, 2013 12:07 pm

Re: Destroying an entity if a failure occurs during service

Post by willem » Thu Feb 25, 2016 6:12 am

Hi,

In the on-failed event of the server,
Search the contents of the processing queue, in the found step place a release step in order to release the applicable server. Directly after that place a destroy step to delete the entity, otherwise you can transfer it back to the start.

Hope this helps...

reedrsmith
Posts: 3
Joined: Mon Feb 08, 2016 2:57 pm

Re: Destroying an entity if a failure occurs during service

Post by reedrsmith » Fri Feb 26, 2016 2:26 pm

@willem , thanks for your reply! That sounds like what I'm trying to do.

Are you referring to creating an Add-On Process with Search, Release, Destroy steps? I'm playing around with that but haven't figured it out yet.

I looked for an 'on failed event' event, but under my Definitions>Events window, I only have 1 inherited event and then three others that I created for other functions. Can you guide me a little further?

Thank you!

reedrsmith
Posts: 3
Joined: Mon Feb 08, 2016 2:57 pm

Re: Destroying an entity if a failure occurs during service

Post by reedrsmith » Fri Feb 26, 2016 10:48 pm

@willem, after working a little more, I created an add on process when the workstation fails with a search, release, and destroy step like you suggested and it seems to be doing the trick. I had to try a few things before figuring out I needed to release the specific workstation object in question, but it seems to be humming along now. Thank you for the suggestion!

Post Reply