Assume you have a Decision Model and Notation (DMN) model and want to deploy it on the cloud. There are some options for deploying the DMN model into a serverless environment, like Azure, AWS, and Google Cloud. This article discusses how you can deploy a DMN model as a Google Cloud Function.

Package Settings for Google Cloud Function

To deploy a DMN model as a Google Cloud Function, click the Package Builder (the red Box icon). On the first tab, you must fill out the package and service-related settings.

PackageBuilder

Settings of Google Cloud credentials to deploy

In the Deployment tab, you must fill out your Google Cloud credentials, such as Client ID and Client Secret. If you don't know how to find the credentials from your Google account, please check this article.

PackageBuilder-deploy

After filling in the Google Cloud credentials, click the Publish button to deploy the DMN model as a Google Cloud Function.

Service Endpoints for the DMN model

Now, you have access to the Execute URL for your Google Cloud function and the URLs for Packages and Services.

Decision Model and Notation and Azure - endpointURL

Accessing Service Endpoints for the DMN model

You can copy the endpoint URLs and set a third-party API client like Postman to access the service endpoints as follows.

Decision Model and Notation and Azure - Postman

Summary to deploy the DMN model to Google Cloud Function

By clicking on the package builder icon and filling out the package settings and credentials, you can deploy your DMN model on Google Cloud. To get the response from your DMN model, you can use any third-party API client. You need to pass the input to the deployed DMN model and get the response.