Create a constant in your model for instance called Environment. We gave that the default value local so then when running local it will have that value. In your accp en prod environment you set this constant in your environment to the correct value like accp and prod. You can then use a rule to check in what environment you are like this:
And for accp and production you could check the values that you have set in the environments.
Now you can use this flow to check if you are currently working local.
Regards,
Ronald
Thank you Ronald!
Yes, that was my first idea, and might be our fallback solution, but I'm courious whether we can handle those rare issues when license is not read correctly, so even on Acceptance or Production environment the application starts in a different (e.g. developer/Unspecified) mode.
(Another idea would be to determine environment from URL, which would be one step more automatic, but still not handle the runtime mode question.)