Managing Solution Templates


The solution template enables easy and flexible creation of EnOS Industry Application Common Building Blocks menu to form reusable application templates. Based on the application template, you can complete application creation, purchase, and configuration with one click, improving the efficiency of application configuration.


Solution Template includes the following types of templates:

  • Application Template, the template used to create applications based on Industry Application Common Building Blocks.

  • Global Data Template: the template used to import global data to other environments.

Prerequisites


  • Ensure that the application category Common Application Common Building Blocks in EnOS Management Console and EnOS Application Portal of your environment has been configured. Contact the system administrator if necessary.

  • Ensure that the Application Registration Administrator and Administrator policy for the current OU have been configured in EnOS Management Console of Configuration Center. For more information, see Policies, Roles, and Permissions.

  • Ensure that Configuration Center has granted the following accesses in EnOS Application Portal:

    • To access the IDs, usernames, emails, and phone numbers of all users in this OU

    • To access the IDs and names of all assets in this OU

    • To access the IDs and names of all roles in this OU

    • To edit all the roles in this OU

    • To edit all the menu groups in this OU

      For more information, see Authorizing API Permissions.

Managing Application Templates


Application Templates can be used to create applications based on Industry Application Common Building Blocks.

Creating Application Templates

Step 1: Creating a New Template


  1. Select Solution Template from the left navigation pane.

  2. On the All Industries tab, or the tab of the desired template type, select + Add Template > New Template.

  3. In the Basic Information step, enter the basic information of the template:

    • Template Name: the name of the template.

    • Template Type: the type of the template. Select Application Template here.

    • Industry Category: the industry that the template is applicable to.

    • Description: the supplementary description of the template.

  4. After entering the basic information, select Next to go to the Configure Function step.

Step 2: Configuring Function


  1. In the Configuring Functions section, select + Add Menu.

  2. In the pop-up window, select menus that you want to add to the template from the Selectable List. The items in the Selectable List are the menus provided by pre-registered EnOS Industry Application Common Building Blocks.

  3. (Optional) If you want to configure a two-layer menu structure, select Add Level 1 Menu, and enter the following information:

    • Menu Name: customize the name of the level-1 menu.

    • Identifier:customize the menu identifier.

    • Sorted By: sequence number of the menu in the current level. For menus of the same level, those with a smaller number will be arranged at the top. Only integrals between 1 and 9999 can be entered.

  4. (Optional) If you want to edit the details of an added menu, hover over the edit icon btn_config of the menu, select Edit Menu and configure the following information in the pop-up window then select OK.

    • Menu Name: customize the name of the function menu.

    • Identifier: customize the menu identifier.

    • Menu Level: define a level for the menu. Only two levels are supported. Level 2 must be under Level 1.

    • Sort By: sequence number of the menu in the current level. For menus of the same level, those with a smaller number will be arranged at the top. Only integrals between 1 and 9999 can be entered.


      ../../_images/st_config_function.png


  5. (Optional) If you add menus provided by Digital Twin Visualization or Unified Monitoring, configure the menus by the following steps:

    • Digital Twin Visualization

      1. Select Configure btn_config > Select Template to select a page template. After selection, the configuration status of the menu will be updated to Completed.

      2. If necessary, select Configure btn_config > Configure Template to open the configuration page. For more information about how to configure, seeLearning About Digital Twin Dashboard.

      3. After the configuration, select Save in the upper right corner.

    • Unified Monitoring

      1. Select Configure btn_config > Configure Template to open the configuration page.

      2. After the configuration, select Publish in the upper right corner. The configuration status of the menu will be updated to Completed.

        Various pages of the Unified Monitoring can be exported and imported, enabling quick reuse of existing pages in different environment/OU. For more information about how to configure, see:

  6. After function configuration, select Next in the lower right corner to go to the configuring roles step.


Note

Before generating the application, ensure that the configuration status of all functions are “completed” or “not required”; otherwise, you may not be able to publish the template or generate the application.

Step 3: Configuring Metadata


  1. In the Configure Metadata section, select the required type of metadata on the metadata list.

  2. Select + Add, select the metadata you want to add to the template.

  3. Select OK.

  4. Repeat the steps above to add other required metadata to the template.

Note

When building an application with an application template, the data in the template will be assigned to the current OU. If the data do not exist in the current environment, contact the system administrator.

Step 4: Configuring Roles


  1. In the Configure Roles section, select New Role.

  2. Enter role name and description in the popup window, and selectOK.

  3. In the role list, select the edit btn_edit button corresponding to the role to open the configuring roles page.

  4. Select Assign Menu to assign the menu configured in step 2 to the role. Once assigned, the role will have access to the selected menu.

  5. Select Assign Permission Point to assign permission point to the role. Once assigned, the role will have access to all operations corresponding to the permission point.


    ../../_images/st_config_role.png


  6. After role configuration, select Next in the lower right corner to go to the publishing step.

Step 5: Publishing the Template


In the Publish Template section, select Publish Template and select Publish in the pop-up window.

Building Applications


  1. Select Solution Template from the left navigation pane. On the corresponding industry type tab, select a published application template.

  2. Select Application Information to access the Application Information tab, and select Build App.

  3. Customize the application name in the pop-up window, and select Build.


After an application is built, you need to perform the following tasks to ensure users can access to application menus and functions:

  • In Application Portal, assign the roles you added to the template to users. For more information, see Assigning Roles to a User.

  • In Application Portal, assign the menus you added to the template to users’ roles. For more information, see Assigning Menu Groups.

Updating Applications


For a template that has generated the application, after editing the template, the template content must be updated to the application.

  1. Select Solution Template from the left navigation pane. On the corresponding industry type tab, find the desired template and select it to open the editing page.

  2. Select Publish on the left to open the Publish step page.

  3. Select Update App.

Managing Global Data Templates


Global Data Template can be used to import global data to other environments.

Creating Global Data Templates

Step 1: Creating a New Template


  1. Select Solution Template from the left navigation pane.

  2. On the All Industries tab, or the tab of the desired template type, select + Add Template > New Template.

  3. In the Basic Information step, enter the basic information of the template:

    • Template Name: the name of the template.

    • Template Type: the type of the template. Select Global Data Template here.

    • Industry Category: the industry that the template is applicable to.

    • Description: the supplementary description of the template.

  4. After entering the basic information, select Next to go to the Configure Metadata step.

Step 2: Configuring Metadata


  1. In the Configure Metadata section, select the required type of metadata on the metadata list.

  2. Select + Add, select the metadata you want to add to the template.

  3. Select OK.

  4. Repeat the steps above to add other required metadata to the template.

Note

When building an application with an application template, the data in the template will be assigned to the current OU. If the data do not exist in the current environment, contact the system administrator.

Step 3: Publishing the Template


In the Publish Template section, select Publish Template and select Publish in the pop-up window.

Importing Data


After publishing a global data template, you need to import the data of the added metadata from your OU to the template by the following steps:

  1. Select Solution Template from the left navigation pane. On the corresponding industry type tab, select a published global data template.

  2. Select Operation Information to access the Operation Information tab, and select Import Data.

Updating Data


For a template to which you have imported data, after editing the template, you need to update the data in the template by the following steps:

  1. Select Solution Template from the left navigation pane. On the corresponding industry type tab, select a published global data template.

  2. Select Operation Information to access the Operation Information tab, and select Update Data.

Editing Templates


Select Solution Template from the left navigation pane. On the corresponding industry type tab, find the template to be edited and select it to open the editing page.


Note

A published template is locked and must be unlocked in the template list before editing. Hover over the template card, and select … > Unlock Template in the upper right corner of the card. Once unlocked, the template can be re-edited.

Editing Basic Information


You can edit all basic information except the identifier in the Basic Information step. After editing, select Next to save the modifications.

Editing Functions


Note

You can only edit the functions of an application template.

In the Configuring Functions step page, you can perform the following operations:

  • Add a new menu: select Add Menu, and add a new menu by referring to the Configuring Functions step.

  • Edit existing menu: select the Configure btn_config > Edit Menu button corresponding to the existing menu to edit the menu Name, Level and Sort By.

  • Change menu template: you can change the selected template in the Digital Twin Visualization > Metrics Page. Select the Configure btn_config > Select Template button corresponding to the existing menu, and then select a new menu template. After the configuration, you can reconfigure the menu template.

  • Reconfigure menu template: select the Configure btn_config > Configure Template button corresponding to the existing menu, and configure the template by referring to the Configuring Functions step. After the configuration, select Save/Publish in the upper right corner.

  • Delete a menu: select Delete btn_delete corresponding to the existing menu to delete the menu.

Editing Metadata


On the Configuring Metadata step page, you can perform the following operations:

  • Add a new metadata: Select + Add and select the metadata you want to add to the template from the metadata list.

  • Delete a metadata: select Delete btn_delete corresponding to the existing metadata to delete the metadata.

Editing Roles


Note

You can only edit the roles of an application template.

On the Configuring Roles step page, you can perform the following operations:

  • Add a new role: select New Role to create a new role by referring to the Configuring Roles step.

  • Edit basic information of the role: select the Edit btn_edit button corresponding to the existing role to open the role details page. Select Edit Role in the upper right corner to edit role name and description.

  • Edit menu and permission point of the role: select the Edit btn_edit button corresponding to the existing role to open the role details page. Select Assign Menu and Assign Permission Point respectively. After rechecking in the popup window, select OK.

  • Delete role: select Delete btn_delete corresponding to the existing role to delete the role. After a role is deleted, the permission point assigned to the role will be removed simultaneously.


Note

For a published template, you need to select Update Template in the Publish step page for the modifications to take effect. The updated template will be relocked at the same time.

Exporting and Importing Templates

Exporting Templates


A published template can be exported.

  1. Select Solution Template from the left navigation pane, and find the desired template on the corresponding industry type tab.

  2. Hover over the template card, and select … > Export Package in the upper right corner of the card.

  3. Download the ZIP file.

Importing Templates


By importing a file, you can create a new template or import to update an existing template.

Importing a New Template


  1. Select Solution Template from the left navigation pane, and select Add Template > Import Template.

  2. Upload the local ZIP file.

  3. After the template is imported successfully, it will appear on the All Industries tab as well as the corresponding industry type tab.


Note

After a new template is imported to the new environment/OU, you can only import to update the template. Editing the template on the page is not currently supported.

Importing to Update an Existing Template


  1. Select Solution Template from the left navigation pane, and find the desired template on the corresponding industry type tab.

  2. Hover over the template card, and select … > Import to Update in the upper right corner of the card.

  3. Upload the local ZIP file.


Note

When importing to update a template, you must:

  • Ensure that the imported file has the same template identifier as the existing template on the page, and the existing menu has the same menu type, function type, and menu identifier as the existing template on the page.

  • At the same time you update the ZIP file, update the template version, i.e. the version parameter value in the template file; otherwise, the import may fail because the file has not been updated.