example:I have a variable called RunProcess. If this variable return FALSE value in the Pre-Execution the process in question would become to Simulation Mode: Successful
There is not a way to set Simulation Mode programmatically. Perhaps there is another way to accomplish what you are trying to do? Give us some more details if you would like input and other ideas to accomplish your goal with this process design.
I could already solve my problem with the operator reset.
So I had the same requirement but it was because I was trying to remove the clutter of extra operators.
In the below sample all the x custom ports equate to "don't run the operator attached to the same colored check mark." This was my original solution, which works. basically, the 2 condition go into an OR operator so one of them will always complete. But since I wanted all 3 paths to go in parallel, I needed the AND operator to pause before all were complete.
It bugged me to have to create 6 different paths plus add the ORs to accomplish the goal.
My 2nd solution was essentially what you did above with the reset operator. It has the same problem. Same number of custom ports, same number of operators, and possibly clumsier visually
BUT... I just stumbled on this which appears to provide the same functionality, essentially as Simulate in my limited testing so far. The setOperatorStatus function, which I can run in the Pre-Execute code of the operator in question.
This should allow me to convert the above mess into a much more compact and cleaner version that would look like this:
Should work for you as well and you can make the Reason say anything you want.
Andrew, Is there anything wrong with my synopsis and understanding of that function as illustrated in this post?