R23 – Use LocalEnvironment over Environment (WMB)

Use LocalEnvironment over Environment (WMB)

The different environment trees have different scopes at runtime. The LocalEnvironment only lives as
long as the compute node, so it is preferred to the Environment that lives as long as the flow.

For example

SET Environment.P1.Name = OutputRoot.XMLNSC.Request.Person.Name;

Preferred SET LocalEnvironment.P1.Name = OutputRoot.XMLNSC.Request.Person.Name;