This documentation is for WSO2 Enterprise Service Bus version 4.8.1 . View documentation for the latest release.

All docs This doc

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Localtab Group
Localtab
activetrue
titleUsing an Inline script

The following syntax applies when you create a Script mediator with the script program statements embedded inline within the Synapse configuration.

Code Block
XML
XML
<script language="string">><![CDATA[...script source code...<script]]><script/>
Localtab
titleUsing a script of the registry

The following syntax applies when you create a Script mediator with the script program statements stored in a separate file, referenced via the Local or Remote Registry entry.

Code Block
languagexml
<script key="string" language="string" [function="script-function-name"]>
    <include key="string"/>
</script>

...

Code Block
XML
XML
<script language="js">mc><![CDATA[mc.getPayloadXML()..symbol != "IBM";<script]]><script/>

Example 2 - Using a script saved in the registry

...