Summary
This article covers the environment command.
Description
This command returns a string identifier indicating the environment in which script is executing. The possible environments are ‘Production’, ‘Staging’, and ‘Local’ (this shall only be used by Fountayn developers).
Attributes
- none
Parameters
- none
Example
<script scriptId="emailTrigger">
<body>
<s:if>
<s:lte>
<s:numberPath path=".rate:value"/>
<s:number value="40"/>
</s:lte>
<s:email>
<s:to>
<s:if>
<s:eq>
<s:environment/>
<s:string value="Staging"/>
</s:eq>
<s:list>
<s:string value="emailtriggers@fountayn.com"/>
<s:string value="test1@clientAddress.net"/>
</s:list>
<s:list>
<s:string value="emailtriggers@fountayn.com"/>
<s:string value="test1@clientAddress.net"/>
<s:string value="test2@clientAddress.net"/>
<s:string value="test3@clientAddress.net"/>
</s:list>
</s:if>
</s:to>
<s:from>
<s:string value="no-reply@fountayn.com"/>
</s:from>
<s:subject>
<s:string value="Heart Rate <= 40 bpm"/>
</s:subject>
<s:body>
<s:concat>
<s:string value="Patient #: "/>
<s:stringPath path="/registration.patID:value"/>
<s:string value=" - Heart Rate <= 40 bpm"/>
</s:concat>
</s:body>
</s:email>
</s:if>
</body>
<target typeId="rate" action="update" when="after" shouldReconcile='false' />
</script>Need more help?
Please visit the Fountayn Contact Information page.