Page History
...
Step-by-step guide to add the migration service
UI Text Box | type |
---|
Info |
This service is not a standard service, and it is not part of the AquimaLibrary. You have to ask for the code at support@blueriq.com and add the definition to the globals manually. |
- In Studio add a custom service named named
AQ_Aggregate_Index_Migrate
- The service definition looks like this:
The AggregateId is always required.
The aggregate version is optional. In case this is not specified, the latest version of an aggregate will be indexed. This service has the following parameters:Parameter Direction Value Data Type Description Fill AggregateType Input Module Element Aggregate Select the aggregate that you want to update. Required AggregateId Input Expression Integer Please provide the attribute containing the ID of the aggregate entry to index. Required AggregateVersion Input Expression Integer If a specific version of the aggregate needs to be updated. If not provided then the latest one is updated. Optional StoreInstances Input Expression - Multivalued, Multivalued results Entity Specify the starting point instance(s) used for storage. Optional Event Name Event Type Description AppException Cancel The service takes this exit if indexing failed for some reason.
...
- A project that wants to index the aggregates has to create an exposed migration flow.
- This flow should be called for every aggregate Id in the database. It can be passed as a parameter in the URL, and retrieved from there with the BB_SetRequestParameters service.
- In this flow you then call the Service call type: AQ_Aggregate_Read to load the existing aggregate into the profile. It might be needed to also load referenced aggregates in order to obtain a complete profile.
- The next step is to use the
AQ_Aggregate_Index_Migrate
or Service call type: AQ_Aggregate_Update service to update the aggregate index.
...
Info |
---|
The code to query the database, to select the applicable Ids, and passing them one by one to the exposed flow is left to the project team. |
...
. |
...
UI Expand | ||
---|---|---|
| ||
| ||
showLabels | false | |
max | 5 | |
spaces | BKB | |
showSpace | false | |
sort | modified | |
reverse | true | |
type | page | |
cql | label in ("aggregate","search","migration") and type = "page" and space = "BKB" | labels | search aggregate migration
Overview
Content Tools