When running an experiment, FlexSim spawns new child processes for each replication. When a replication finishes, it runs its own EndOfReplication from the child process. Then the parent process also runs EndOfReplication.
This is by design and allows you to do different behaviors if you need to access the child process or the parent process. That third parameter, the childexpfolder, whether it exists or not is what tells us whether it is a child process or parent process calling the trigger.
if (objectexists(childexpfolder)) { // End of Replication on the main process } else { // End of Replication on the child process }
3 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