<?xml version="1.0" encoding="UTF-8"?> <action-sequence> <title>Set Global Variable</title> <version>1</version> <logging-level>debug</logging-level> <documentation> <author>Marc</author> <description>Sets a global variable from an action sequence</description> <help/> <result-type/> </documentation> <inputs/> <outputs> <GLOBAL_TEST type="string"> <destinations> <global>GLOBAL_TEST</global> </destinations> </GLOBAL_TEST> </outputs> <resources/> <actions> <action-definition> <action-inputs /> <action-outputs> <GLOBAL_TEST type="string"/> </action-outputs> <component-name>JavascriptRule</component-name> <action-type>rule</action-type> <component-definition> <script><![CDATA[ GLOBAL_TEST = "This is a test"; ]]> </script> </component-definition> </action-definition> <action-definition> <action-inputs> <GLOBAL_TEST type="string"/> </action-inputs> <action-outputs> <junk type="string" /> </action-outputs> <component-name>JavascriptRule</component-name> <action-type>rule</action-type> <component-definition> <script><![CDATA[ out.println("Global Variable GLOBAL_TEST=" + GLOBAL_TEST); junk = GLOBAL_TEST; ]]> </script> </component-definition> </action-definition> </actions> </action-sequence>