Components
This module fills packages automatically, both ways: adding to the created package contents already present in the base, and attaching a created or imported content to the existing packages.
It fills, for instance, a customer folder automatically with parts already present. The other way round, an imported invoice automatically joins the package of the customer. In both cases, the link is expressed by a GQL query that compares the metadata of one to the metadata of the other.
Add automatically existing contents to the created package:
This part concerns the creation of a package. The query identifies the existing contents that are added to it. The ${aspect.metadata} wildcard carries the metadata of the created package, which selects the contents that match it.
Use core.version_tags = 'latest' to return only the latest versions:
select * from documents where extended.city = '${extended.city}' and core.version_tags = 'latest'
Add automatically created or imported content into existing package:
This part concerns the creation or the import of a content. The query identifies the packages it is attached to. Here the ${aspect.metadata} wildcard carries the metadata of the created content.
Use core.version_tags = 'latest' to return only the latest versions:
select * from documents where core.is_package = true and extended.city = '${extended.city}' and core.version_tags = 'latest'
Flows
This module can be used in the following flows: