Association of asset with external object is implemented through a specific lookup. An out of box Arena interface provides the ability to define lookup plugins to add lookup support for other external objects (for example, lookup users from Active Directory).
To use:
- Use the
LookupService
interface for lookup implementation. - See the
example/AniLookup.java
file for example. - Build a .jar file to implement the asset association.
- Ensure that the newly generated .jar file is available in the path
/opt/zdp/zdp-gateway/lib/plugins/lookup/
where zdp-gateway is sinalled. - Define the association relationship as below:
relationship.kind: "ASSOCIATION"
# target name of the object. This value should match the string getType method of the plugin returns.
relationship.target: <target name>
# "1.1" OR "1.*",
relationship.cardinality: "1.1"
# The attribute for which the asset instances will be listed out from the target asset type.
relationship.source: " "
- Restart zdp-gateway service.
- Go to the Arena UI to apply the associations.
These files are provided as-is without warranty and are licensed under the Apache License 2.0