question

Sean A avatar image
0 Likes"
Sean A asked Sean A edited

HC: (Items) If no available downstream resource then items exit.

Hey folks,

I have a simple model where phone "orders (items)" arrive and can be sent to two operators to be processed. There are only two receptionists who can take these calls and if they are busy I want the "calls/item arrivals" to be sent to a different location to be processed. Essentially I want the people who don't make it through to leave a message for the same receptionists that they will then call the person back and process the order.

Having a hard time figuring out the syntax of how to specify that condition using FlexScript. In my mind it would be some kind of logic like:
IF TakeOrder1.status==Utilized AND TakeOrder2.status==Utilized
THEN OrderArrivals.port=AnsweringMachine

Hoping it could be done with the drop downs or using a queueing object in a slick way.

Any help is appreciated.
phone-call-different-staff.fsm

FlexSim HC 5.1.0
item flowitem release
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

·
Matthew Gillespie avatar image
0 Likes"
Matthew Gillespie answered Sean A edited

The port logic is already behaving the way you described. The Send To Port field of the Phone Calls arrivals object is set to First Available, so it first tries to send it to TakeOrder1, then TakeOrder2, and then if both are busy it is sent to the Answering Machine object.

Alternatively, depending on the level of detail you need, you could just put a Queuing object between the Arrivals object and the TakeOrder objects. The items would just wait in the queue until they're processed.

· 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.

Sean A avatar image Sean A commented ·

phonecall-answeringmachine.fsm

Thanks @Matthew Gillespie


I didn't realise it was doing this by default, thought I would have to specify in one of the triggers. Working as intended.

Greatly appreciated.

0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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