question

jao.fonseca avatar image
0 Likes"
jao.fonseca asked Gustavo Teodoro commented

Invalid triggering event, event rank 1, "Source" in process flow "Arrivals"

What are the steps to resolve this error?

Follow the simulation file below


1718792611263.pngSIMULAÇÃO FUTURO DO ALMOX.fsm

FlexSim 24.0.2
event rankinvalid triggering
· 2
5 |100000

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

jao.fonseca avatar image jao.fonseca commented ·
helppppppp


0 Likes 0 ·
Jeanette F avatar image Jeanette F ♦♦ commented ·

Hi @jao.fonseca, was one of Gustavo Teodoro's or Paula LG's answers helpful? If so, please click the "Accept" button at the bottom of the one that best answers your question. Or if you still have questions, add a comment and we'll continue the conversation.

If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always comment back to reopen your question.

0 Likes 0 ·
Gustavo Teodoro avatar image
0 Likes"
Gustavo Teodoro answered Gustavo Teodoro commented

Upon reviewing your comments, I believe you are linking the creation of a patient to a parallel flow of warehouse deliveries. I suggest implementing the parallel flow in a process flow that is not specific to the patient, but rather a general one. Attached is an example of how to synchronize these two flows.

The synchronization logic is in the "Create tokens" process, which triggers the separation and delivery from the warehouse and runs the flow in parallel. Meanwhile, the patient waits for this process to complete before proceeding with their own flow.


1718888212968.png

FX_WaitForEvent.fsm


1718888212968.png (25.0 KiB)
fx-waitforevent.fsm (72.0 KiB)
· 2
5 |100000

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

jao.fonseca avatar image jao.fonseca commented ·

The attached example confused me, I'm new to FlexSim and I don't know much, is it possible to explain it within my simulation or explain it step by step in more detail?

0 Likes 0 ·
Gustavo Teodoro avatar image Gustavo Teodoro jao.fonseca commented ·

Each patient arriving at the model is represented by a token and processed in an instance. Flexsim creates a copy of the process flow for each patient and runs it independently. The warehouse operates as a single process independent of the patients. In the model I have attached, the patient arrives at the hospital and can proceed to either reception or the waiting room. Then, they move to the Exam Table for the procedure. Finally, they move to the Observation Room and must wait for the warehouse delivery. The warehouse delivery is handled independently. To address this issue, I used the "Create token", which creates a token in the process flow representing the warehouse, and the delay represents the overall process (which can be further detailed). The "wait for event" function waits for the token to pass through the process to release the patient.

0 Likes 0 ·
Paula LG avatar image
0 Likes"
Paula LG answered jao.fonseca commented

Hi Jao,

The problem is that when you listen to activities that belong to an instanced process flow, you need to define the specific instance that will trigger this source.

1718794257556.png

You can't do that in your model, since the instances will be the patients you create throughout the simulation and don't already exist. In this case, you should find another way of triggering when you need a new patient arrival.

I hope it helps!


1718794257556.png (27.1 KiB)
· 3
5 |100000

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

jao.fonseca avatar image jao.fonseca commented ·

I partially understand, but I don't know what to do to fix it.

Help me please.



0 Likes 0 ·
Paula LG avatar image Paula LG jao.fonseca commented ·

In order to help you I need to understand what you're trying to do with all these blocks:


1718795315171.png


What I'm guessing is that you want to create 6 patients every time a token exits the "Process Sat 2" activity and 4 patients when exiting "Process Sat 1" activity. Is that correct? If not, could you explain it?

0 Likes 0 ·
1718795315171.png (100.2 KiB)
jao.fonseca avatar image jao.fonseca Paula LG commented ·

I'm working with deliveries made by the warehouse. In this case, all blocks are assistance sectors that will collect the material from the satellite pharmacy, but only after the warehouse has delivered it to satellites 1 and 2.

0 Likes 0 ·