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?
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?
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.
I can't post the entire model because the data privacy of my company only the custom code for it.
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.
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!
8 People are following this question.
FlexSim can help you understand and improve any system or process. Transform your existing data into accurate predictions.
FlexSim is a fully 3D simulation software environment. FlexSim can be used to simulate any process in any industry.
FlexSim®, FlexSim Healthcare™, Problem Solved.®, the FlexSim logo, the FlexSim X-mark, and the FlexSim Healthcare logo with stylized Caduceus mark are trademarks of FlexSim Software Products, Inc. All rights reserved.
Privacy | Do not sell or share my personal information | Cookie preferences | Report noncompliance | Terms of use | Legal | © Autodesk Inc. All rights reserved