Create a micro-application
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
Log on to the Data Resource Platform console.
In the upper-left corner of the page, click the
icon and select Explore.In the top menu bar, click the
icon, select the target workgroup, and then click Task Hub.In the navigation pane on the left, choose Offline Task > Micro-application.
In the upper-right corner of the Micro-application page, click Create Micro-application.
In the Create Micro-application wizard, configure the basic information for the micro-application, including the name, App Catalog, and description. Then, click Next.
Configure parameters.
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.
NoteYou 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.
After you complete the configuration, click Next.
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.
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. |