question

Daniela SA avatar image
0 Likes"
Daniela SA asked Joseph Gillespie commented

how to change the state of a processor?

I am currently working on a model of a Bank in which I have two service desks. One of the objectives is to attend to all the clients even after the bank closes.

I have a Process Flow that looks like this:

My Custom Codes won't change the state of the processors and they leave them on "idle" but I want them "on break"

FlexSim 18.2.3
custom code
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

·
Joseph Gillespie avatar image
0 Likes"
Joseph Gillespie answered Joseph Gillespie commented

@Daniela SA

Are you sure it's not working? It might be just that as soon as something gets processed, it switches back to "idle":

If you attach your model I could find out what the problem is more specifically.


statechange.gif (62.9 KiB)
· 4
5 |100000

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

Daniela SA avatar image Daniela SA commented ·
@Joseph Gillespie

This is my model. It should be changing, but I don't know why it doesn't.

I run the model, and it works fine, the clients are processed but once they're gone, the state of the processors stays as "idle" and I need it to change to "on break" so it doesn't affect my pie chart for utilization.

examen-3p-process-flow.fsm
0 Likes 0 ·
Joseph Gillespie avatar image Joseph Gillespie Daniela SA commented ·

@Daniela SA

I'm not sure what you were doing here, but your problem is with your decide activities:

The condition you set in the decide activity is never true, so the tokens actually never make it to your custom code and thus never set the state of "Caja 1" and "Caja 2" to on break.

0 Likes 0 ·
capture.png (23.5 KiB)
Daniela SA avatar image Daniela SA Joseph Gillespie commented ·

Yeah, I realized that. And I changed the logic already. The tokens actually make it to my custon code now but still, it wont change the state of my processors.

This is my model now. I don't know why it won't follow the custom codes...

examen-3p-process-flow.fsm

0 Likes 0 ·
Show more comments

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.