I would like to have a different logic for the process when it’s started from Studio from Debug and Run mode. There was already a similar question but solution was to use a Studio UI which I would like to avoid.
If Job.Mode = "Debug"
Do something else
Very strange requirement in my opinion, but either way, details of that are held on the RobotRunner in the executor. You cannot expose any values from them without using a custom activity. I’d suggest rethinking your approach, perhaps you can explain why you think you need to do this / your use case?
Hello @Jon_Smith. Thanks for pointing to RobotRunner. I will explore that.
I am working on an attended process. On one of the steps it should prompt user a Form to enter some information.
I don’t need to display a Form to the developer while Debugging and default values can be used. But I would like to have a Form in Run mode.
You want to skip the display form action and instead populate the values with defaults.
So, you mock the workflow and surround the ‘Display Form to User’ activity with a mock, on the right hand side you can add the activities to provide any default values.
Your original workflow stays intact and clean and the mock will be automatically kept in sync when any changes are made.
When the dev wants to test they can run the mock and it will avoid displaying the form as per the mock activity displayed.