MID server background scripts use the ECC Queue. To understand what they do, and potentially replicate them, just write a record to the ECC Queue table in the same way. Use JavascriptProbe as Topic and use Payload to pass through an XML snippet with a script parameter. Follow these steps:
- Navigate to ECC > Queue, and click on New. Use these values:
- Agent: mid.server.<name> (Mine is mid.server.midserver)
- Topic: JavascriptProbe
- Queue: output
- Payload:
<parameters> <parameter name="script" value="'Hello, world! ' + (1 + 2 + 3);"/> </parameters>
- Navigate to ECC > Queue, sort by Created, and watch for the reply that has a Topic of JavascriptProbe:
The response in the XML should be
<output>Hello, world! 6</output> ...