Error during execution of a External Event Receiver XQuery Automator
Hello,
I am using OSM version 7.4.0.0.0 and created an XQuery Automator for receiving data from a JMS queue.
...
declare variable $automator external;
declare variable $context external;
declare variable $EXIT_PATH := "success";
return(
context:completeTaskOnExit($context, $EXIT_PATH)
)
I am getting the following error during the execution of the plugin:
Failed to execute plugin[/automation/plugin/externalAutomationResponse] due to Exception thrown while running Script resource ; exception location: ; Line#: 16; Column#: 1
...
Caused by: net.sf.saxon.trans.XPathException: Unknown system function return()
Attached the complete error log