Skip to content

Generate the same URI/UUID regardless if a variable is declared or not #71

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
ymark opened this issue Oct 31, 2016 · 1 comment
Open

Comments

@ymark
Copy link
Collaborator

ymark commented Oct 31, 2016

The generation of a URI/UUID will be the same if a variable is being used.
Practically this means that if we want to generate a UUID for input A, then the same UUID should be generated if for the same piece of input we exploit a variable. For example the following mappings should create the same UUID for the two mappings

<mapping>
   <domain>
      <source_node>//COIN</source_node>
      <target_node>
         <entity>
            <type>crm:E22_Man-Made_Object</type>
            <instance_generator name="UUID"/>
         </entity>
      </target_node>
   </domain>
</mapping>
<mapping>
   <domain>
      <source_node>//COIN</source_node>
      <target_node>
         <entity variable="v1">
            <type>crm:E22_Man-Made_Object</type>
            <instance_generator name="UUID"/>
         </entity>
      </target_node>
   </domain>
</mapping>
@ymark
Copy link
Collaborator Author

ymark commented Oct 31, 2016

Apart from creating the same value if in some cases a variable is used and in others it is not used, we should take care of the cases where two or more different variables are used for the same input (which is normal) and two or more different variables are used for the same input and a mapping for that input without a variable (this should be forbidden since it might cause inconsistencies)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant