13.5.3. GroovyActionProcessor


Class org.jboss.soa.esb.actions.scripting.GroovyActionProcessor
This action executes a Groovy action processing script, receiving the message, payloadProxy, action configuration and logger as variable input.
Table 13.12. GroovyActionProcessor Properties
Property Description Required
script
Path (on classpath) to Groovy script.
supportMessageBasedScripting
Allow scripts within the message.
cacheScript
Should the script be cached. Defaults to true.
No
Table 13.13. GroovyAction Processor Script Binding Variables
Variable Description
message
The Message
payloadProxy
Utility for message payload (MessagePayloadProxy).
config
The action configuration (ConfigTree).
logger
The GroovyActionProcessor's static Log4J logger (Logger). The logging category is jbossesb.<esb_archive_name>.<category>.<service>
<action name="process" class="org.jboss.soa.esb.scripting.GroovyActionProcessor">
    <property name="script" value="/scripts/myscript.groovy"/>
</action>
Red Hat logoGithubRedditYoutubeTwitter

Learn

Try, buy, & sell

Communities

About Red Hat Documentation

We help Red Hat users innovate and achieve their goals with our products and services with content they can trust.

Making open source more inclusive

Red Hat is committed to replacing problematic language in our code, documentation, and web properties. For more details, see the Red Hat Blog.

About Red Hat

We deliver hardened solutions that make it easier for enterprises to work across platforms and environments, from the core datacenter to the network edge.

© 2024 Red Hat, Inc.