 Groovy allows the developer to configure
interceptors and alter the values or references
of particular properties in a script.
 Interceptors are configured to provide
additional services to a message as it flows
through a component.
 When using Groovy, typing-in or appending a
script to the component is the only
configuration required.
 The Groovy component can be used to enhance the user
interface of your web and database applications. The Groovy
component provides developers with the facilities to integrate
custom scripts into a flow using the Groovy scripting engine.
As an example, you can write a custom script using Groovy
language for an application, save it in a separate file and then
configure the Groovy component to reference the file.
long number = (long)
math.floor(Math.random() *
90000000000000L) + 10000000000000L
flowVars.Corr = "98"+number
 <scripting:transformer doc:name="Groovy">
 <scripting:script
engine="Groovy"><![CDATA[long number =
(long) Math.floor(Math.random() *
90000000000000L) + 10000000000000L
 flowVars.Corr =
"98"+number]]></scripting:script>
 </scripting:transformer>
1. Script Text : Type the script that the
component will load directly into this space.
2. Script File: Enter the location of the script to
be loaded by the component. The file can
reside on the classpath or the local file
system.
3. Bean Reference: Lets you add a Java bean,
which encapsulates multiple objects into a
single bean. The Script component can then
store and re-use the bean when applicable.
 Interceptors alter the values or references of
particular properties in a script. They are
configured to provide additional services to a
message as it flows through a component.
For example, you can configure an
interceptor to execute scheduling or logging
of a particular event while a message is being
processed. The Script component also
includes a custom interceptor which allows
you to configure settings for Spring elements.
 For example, you can add an interceptor that
logs transactions and the time for each
transaction. Use the Add Custom
Interceptor to create a custom interceptor
that can reference Spring objects.
The Interceptor Stack enables you to bundle
multiple interceptors. Use the Interceptor
Stack to apply multiple interceptors on a
Groovy component. The interceptors are
applied in the order defined in the stack.
ThankYou!!!!!!!!!

Groovy component

  • 1.
     Groovy allowsthe developer to configure interceptors and alter the values or references of particular properties in a script.  Interceptors are configured to provide additional services to a message as it flows through a component.  When using Groovy, typing-in or appending a script to the component is the only configuration required.
  • 2.
     The Groovycomponent can be used to enhance the user interface of your web and database applications. The Groovy component provides developers with the facilities to integrate custom scripts into a flow using the Groovy scripting engine. As an example, you can write a custom script using Groovy language for an application, save it in a separate file and then configure the Groovy component to reference the file.
  • 4.
    long number =(long) math.floor(Math.random() * 90000000000000L) + 10000000000000L flowVars.Corr = "98"+number
  • 5.
     <scripting:transformer doc:name="Groovy"> <scripting:script engine="Groovy"><![CDATA[long number = (long) Math.floor(Math.random() * 90000000000000L) + 10000000000000L  flowVars.Corr = "98"+number]]></scripting:script>  </scripting:transformer>
  • 6.
    1. Script Text: Type the script that the component will load directly into this space. 2. Script File: Enter the location of the script to be loaded by the component. The file can reside on the classpath or the local file system. 3. Bean Reference: Lets you add a Java bean, which encapsulates multiple objects into a single bean. The Script component can then store and re-use the bean when applicable.
  • 7.
     Interceptors alterthe values or references of particular properties in a script. They are configured to provide additional services to a message as it flows through a component. For example, you can configure an interceptor to execute scheduling or logging of a particular event while a message is being processed. The Script component also includes a custom interceptor which allows you to configure settings for Spring elements.
  • 8.
     For example,you can add an interceptor that logs transactions and the time for each transaction. Use the Add Custom Interceptor to create a custom interceptor that can reference Spring objects. The Interceptor Stack enables you to bundle multiple interceptors. Use the Interceptor Stack to apply multiple interceptors on a Groovy component. The interceptors are applied in the order defined in the stack.
  • 9.