I use WSO2 EI v6.5.0. I want to load username and password of an external SOAP service from the system environment variables into a payloadFactory mediator. Is it possible to use the $SYSTEM prefix in the section?
This script mediator works in my case:
<script description="get cereditorials" language="js">
<![CDATA[mc.setProperty("user", java.lang.System.getenv("ENV_USER"));
mc.setProperty("pwrd", java.lang.System.getenv("ENV_PWRD"));]]>
</script>