Create a micro-application

Updated at:

Micro-applications provide a lightweight way to use models. This topic describes how to create a micro-application.

Prerequisites

An offline model has been created. For more information, see Create an offline model.

Procedure

  1. Log on to the Data Resource Platform console.

  2. In the upper-left corner of the page, click the 导航图标 icon and select Explore.

  3. In the top menu bar, click the 选择工作组 icon, select the target workgroup, and then click Task Hub.

  4. In the navigation pane on the left, choose Offline Task > Micro-application.

  5. In the upper-right corner of the Micro-application page, click Create Micro-application.

  6. In the Create Micro-application wizard, configure the basic information for the micro-application, including the name, App Catalog, and description. Then, click Next.

  7. Configure parameters.

    1. In the parameter configuration wizard, select the model name and version, specify the compute engine for the model, configure model parameters, configure whether to enable data source node replacement, and select one or more model nodes as the outputs for the micro-application.

      Note
      • You can use model parameters as input parameters for the micro-application.

      • Micro-applications support the replacement of data source nodes. After you enable this feature, you can upload an Excel file at runtime to replace the corresponding source data table in the model with the content of the Excel file.

      • You must select one or more model nodes as the outputs for the micro-application. After the micro-application runs, you can directly view the result data of the output nodes on the application's runtime page.

    2. After you complete the configuration, click Next.

  8. API configuration: You can call micro-applications through OpenAPI after they are published. If you want to enable OpenAPI calls, select Publish Micro-application as API in the API configuration section. Then, define a unique parameter name for each micro-application parameter.

  9. After you complete the configuration, click Finish.

Related operations

Operation

Description

Publish a micro-application

In the Actions column of the micro-application list, click Publish to publish a micro-application. Published micro-applications cannot be edited. To edit a micro-application, you must first unpublish it.

Unpublish a micro-application

In the Actions column of the micro-application list, click Unpublish to unpublish a published micro-application.

Edit a micro-application

On the Micro-application page, find the micro-application that you want to edit. In the Actions column, click Edit.

View the source model of a micro-application

In the Actions column of the micro-application list, choose More > View Source Model to view the source offline model of the micro-application.

Delete a micro-application

In the Actions column of the micro-application list, choose More > Delete. In the dialog box that appears, click OK.