Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AVEVA™ Work Tasks

Rebuild the Artifacts

  • Last UpdatedJun 20, 2024
  • 4 minute read

You can use the Rebuild option available on the shortcut menu of the modified artifact to get the latest definition of the artifact in the package template. When an artifact is rebuilt, the latest definition of the artifact is packaged. Associated artifacts, child artifacts, security artifacts, and automatically generated SQL scripts are also added based on the initial configuration settings of the artifact.

Rebuild

  • An orange icon  appears near the artifact indicating that the artifact is modified after it was added to the package template.

  • In the shortcut menu, the Rebuild option is available only if the artifact is modified after it was added to the package template.

  • After the artifact is rebuilt, a green icon  appears indicating the artifact has been updated.

  • If an artifact is disabled or deleted, then a red icon  appears near the artifact.

  • When an artifact is rebuilt, if any additional associated artifacts are found it will be added to the package template. However, associated artifacts present in the package template are not deleted or overwritten. For more details, see the scenario below.

  • When an artifact is rebuilt, child artifacts are not rebuilt.

To rebuild the artifacts in the Package Template

  1. In the Enterprise Console, click the Menu button, click Package, and then click Package Template.

    The Package Template page appears which displays the list of available package templates.

    For information about creating a package template, see Create a Package Template.

  2. Select a package template, and click Edit on the action menu.

    Alternatively, right-click a package template, and then click Edit on the context menu.

    The Edit Package Template page appears.

  3. Click Save & Continue.

    The Edit Package Template page appears.

  4. Right-click an artifact with an orange icon beside it, and then click Complete Rebuild or Activity Rebuild from the shortcut menu.

    A confirmation message about the rebuild appears.

  5. Click OK.

  6. Repeat the process for all artifacts that needs to be rebuilt. 

  7. Click Save Template to save all the changes made to the template.

    The artifacts will be rebuilt and the latest definition of the artifacts will be updated in the package template.

Scenario

  1. Create a Database Lookup on May 25, 2012, as explained:

    1. Enter Title as TelematicsDBLookup.

    2. Give a description to the Database Lookup.

    3. Select Database Connection as TelematicsProductionDB.

    4. Enter Query as Select * from SWExecute Where ID=1.

    5. Enter ValueDisplay Name and save the Database Lookup.

  2. Add TelematicsDBLookup to a Package Template, TelematicsDatabasePackage.

  3. On June 01, 2012, edit TelematicsDBLookup as follows:

    1. Change Database Connection to TelematicsProductionDB2

    2. Change the query as Select * from SWExecute.

  4. On the June 02, 2012, edit the package template TelematicsDBLookup.

    An orange icon appears beside TelematicsDBLookup indicating that the definition has been updated after the lookup was added to the Package Template.

  5. To get the latest definition of the Database Lookup, right-click TelematicsDBLookup, and then select Rebuild from the shortcut menu.

    A confirmation message appears.

  6. Click OK.

    A confirmation message about the rebuild appears.

  7. Click OK.

  8. Verify the changes in the Package Template page.

    • A green icon appears beside TelematicsDBLookup indicating that the latest definition is updated in the Package Template.

    • The associated artifact TelematicsProductionDB2 is also added to the Package Template. However, TelematicsProductionDB is not removed from Package Template > Artifacts > Database Connections even though it is not associated to the TelematicsProductionDB2.

  9. Click Save Templates to save all the changes made to the artifacts.

    Note:

    - When an artifact, for example, a form is added to a package template, its associated artifacts are also added to the package template. If you delete an artifact from the form, and then perform a complete rebuild on the same package template, the deleted artifact is removed from the package template. However, the associated artifacts of the deleted artifact are retained in the package template. For example, consider that a form contains a database lookup, and this form is added to the package template. Now, if the database lookup artifact is deleted from the form, and if the package template is rebuilt again, though the database lookup is removed, its associated artifacts, such as the database connection is retained in the package template.

    - In the Associated Artifacts tab of Database Lookup TelematicsDBLookup, the database connection TelematicsProductionDB will not be listed as it is not associated to database lookup.

     

    In This Topic
    TitleResults for “How to create a CRG?”Also Available in