Difference between revisions of "Field"
(→Description) |
(→{{GVESB}} Configuration) |
||
(6 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
==Description== | ==Description== | ||
− | Field element is used by [[GVDataProviderManager#DataProviders|DataProviders]] | + | This element allows to define the key and direction of the Expression defined above. |
+ | |||
+ | Field element is used by [[GVDataProviderManager#DataProviders|DataProviders]]. | ||
=={{GVESB}} Configuration== | =={{GVESB}} Configuration== | ||
− | The Field Element is used by: [[ArrayDataProvider]] | + | The Field Element is used by: |
+ | * [[ArrayDataProvider]] | ||
+ | * [[Axis2MessageContextDataProvider]] | ||
+ | * [[Axis2SAAJSOAPMessageDataProvider]] | ||
+ | * [[CollectionDataProvider]] | ||
+ | * [[GVBufferChangeDataProvider]] | ||
+ | * [[HttpMethodDataProvider]] | ||
+ | * [[InputStreamDataProvider]] | ||
+ | * [[JMSBytesMessageDataProvider]] | ||
+ | * [[JMSMapMessageDataProvider]] | ||
+ | * [[JMSObjectMessageDataProvider]] | ||
+ | * [[JMSStreamMessageDataProvider]] | ||
+ | * [[JMSTextMessageDataProvider]] | ||
+ | * [[MapDataProvider]] | ||
+ | * [[ObjectDataProvider]] | ||
+ | * [[StringDataProvider]] | ||
+ | * [[XMLEventCollectionDataProvider]]. | ||
The following table shows the Field element's attributes: | The following table shows the Field element's attributes: | ||
Line 11: | Line 29: | ||
! Attribute !! Type !! Description | ! Attribute !! Type !! Description | ||
|- | |- | ||
− | | key || required || The attribute's value | + | | key || required || The attribute's value cannot be null. |
|- | |- | ||
| type || fixed || This attribute must assume the value '''field'''. | | type || fixed || This attribute must assume the value '''field'''. | ||
Line 22: | Line 40: | ||
the attribute 'source-selector') the value returned by the expression is added to the context with the prefix 'key_' + @key. | 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]]. | * 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: | 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]]. | Contains a sub-element [[#Expression|Expression]]. | ||
Line 40: | Line 59: | ||
* xpath | * xpath | ||
* regex | * regex | ||
+ | <div class="version_ge3.3"> | ||
+ | * js | ||
+ | </div> | ||
|} | |} |
Latest revision as of 09:33, 22 September 2014
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:
- ArrayDataProvider
- Axis2MessageContextDataProvider
- Axis2SAAJSOAPMessageDataProvider
- CollectionDataProvider
- GVBufferChangeDataProvider
- HttpMethodDataProvider
- InputStreamDataProvider
- JMSBytesMessageDataProvider
- JMSMapMessageDataProvider
- JMSObjectMessageDataProvider
- JMSStreamMessageDataProvider
- JMSTextMessageDataProvider
- MapDataProvider
- ObjectDataProvider
- StringDataProvider
- XMLEventCollectionDataProvider.
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.
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.
the attribute 'source-selector') the value returned by the expression is added to the context with the prefix 'key_' + @key.
|
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:
|