isl / x3ml

X3ML Engine supports the data transformation which is part of the data provisioning and aggregation process.
Apache License 2.0
20 stars 7 forks source link

support different scopes for variables #34

Closed ymark closed 8 years ago

ymark commented 8 years ago

Enhance X3ML for supporting different scopes for variables. Currently variables are valid within a single element. The first enhancement will be to support global variables (that will be exploited for all the mappings)

ymark commented 8 years ago

Before performing the required modification for supporting the enhancement it is necessary to update the X3ML XSD. A new ticket will be opened for that.

ymark commented 8 years ago

The new functionality is now supported using variables of global scopes. These new variables are valid within different mappings (in a single run).

They are declared in the same way with the ordinary variables (within entity elements) with the name "global_variable". The following block shows their declaration/usage in the mappings file

<entity global_variable="gv1">
   <type>crm:E57_Material</type>
   <instance_generator name="UUID">
      <arg name="text">text()</arg>
   </instance_generator>
</entity>