03-05-2014 01:40 PM
Hi,
We intend to use 2 different process models, running the same MainSequence. The reason for the difference in process models is there is large difference in hardware on the stations. So we need to account for that difference in our mainsequence as well, where we do certain actions when using one process model, and a different action on another.
My question is, what is the preferred property to look at in memory (runstate tree somewhere?) for the MainSequence to have knowledge of what process model it is currently running, so we can add cases in our MainSequence to differentiate actions.
Thanks
Solved! Go to Solution.
03-05-2014 02:03 PM
RunState.Root.SequenceFile.Path
Then strip off the name. That is the best I know how. Hopefully you aren't running in interactive mode.
03-05-2014 02:13 PM
RunState.Execution.GetModelSequenceFile()
03-05-2014 02:29 PM
James' approach is better.... 😉
Because then you don't have to worry about if your root is correct.