question

Ádám GGN avatar image
0 Likes"
Ádám GGN asked Ben Wilson commented

What is the problem with this event triggered source?

I don't know what could be the problem. In my opinion the problem is with the OnExiting event. I saw regular OnExit event that I cannot find here. Is there any differnces between this and the OnExit event?

FlexSim 20.2.2
sourceflexsim 20.2.2event triggereventevent source
nevtelen.png (26.7 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.

zacharyh avatar image zacharyh ♦ commented ·

It's hard to tell what the error could be referring to without looking at the entire model.If you can post your model that would be helpful.

What does your Custom Code say within the Object field of the Event Triggered Source? Also you might want to try placing a Label Name in Param1 and under Operation choosing Assign. Without this it will sometimes provide errors and will also allow you to recognize the tokens from that source later in your process flow.

0 Likes 0 ·
Ádám GGN avatar image Ádám GGN zacharyh ♦ commented ·

I can't post the entire model because the data privacy of my company only the custom code for it.




0 Likes 0 ·
1601015598328.png (137.2 KiB)
Ben Wilson avatar image Ben Wilson ♦♦ commented ·

Hi @Ádám GGN, was tanner.p's answer helpful? If so, please click the red "Accept" button on their answer. 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 unaccept and comment back to reopen your question.

0 Likes 0 ·

1 Answer

·
tannerp avatar image
0 Likes"
tannerp answered

@dam.ggn,

I think you might need to re-evaluate how you're listening to the variable. Normally, the OnExit trigger is fired for an object or activity that has an item or token, respectively, leave/exit it. Now, it seems like you're listening to a Process Flow Variable. A variable doesn't have items or tokens "exiting", as it is just a value.

However, you can listen to the variable "OnChange" or other options, as shown below, but the tokens shouldn't be entering and exiting a Variable. Hope this helps!


5 |100000

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

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.