Difference between revisions of "Field"

From GreenVulcano Wiki
Jump to: navigation, search
(Expression)
(Expression)
Line 58: Line 58:
 
* xpath
 
* xpath
 
* regex
 
* regex
 +
|}
 
<div class="version_ge3.3">
 
<div class="version_ge3.3">
* javascript
+
As alternative at ognl tecnologies with this version, as DataProvide expression, you can use also javascript tecnologies
 
</div>
 
</div>
|}
 

Revision as of 16:15, 21 February 2013

Description

This element allows to define the key and direction of the Expression defined above.

Field element is used by DataProviders.

GreenVulcano® ESB Configuration

The Field Element is used by:

The following table shows the Field element's attributes:

Attribute Type Description
key required The attribute's value cannot be null.
type fixed This attribute must assume the value field.
direction optional Field direction.
  • INOUT: The expression is evaluated on the object set (usually the current GVBuffer, unless otherwise specified

by the attribute 'source-selector') the value returned by the expression, is added to the context with the prefix 'key_' + @key, and set the data provider to be returned in the output.

  • IN : The expression is evaluated on the object set (usually the current GVBuffer, unless otherwise specified by

the attribute 'source-selector') the value returned by the expression is added to the context with the prefix 'key_' + @key.

  • OUT : The expression is evaluated directly on the object that is returned by the Data provider.

In all cases, two variables are added to the context:

  • Input: object set, usually the current GVBuffer, which will not be overwritten from attribute 'source-selector';
  • Output: the object that is returned by the Data provider.

Contains a sub-element Expression.

Expression

The following table shows the Expression element's attributes:

Attribute Type Description
type required The attribute's admitted values are:
  • ognl
  • xpath
  • regex

As alternative at ognl tecnologies with this version, as DataProvide expression, you can use also javascript tecnologies