Using the Bizagi asset

<< Click to Display Table of Contents >>

Navigation:  Bizagi Studio > Bizagi from external applications > Bizagi API > OData RESTful services > Using Bizagi API in middlewares > Using OData with RAML >

Using the Bizagi asset

Overview

An asset in Mulesfot is a global component that contains the API configuration of an system, for example, Bizagi. You can now use this asset in applications or projects built in Anypoint. This article explains how you can use the Bizagi asset you configured.

 

Create an application

In Anypoint, you can create a Mule application, in which you can use all the Bizagi API methods included in the asset. To do that, access the Design Center:

 

raml_21

 

Click Create:

 

raml_22

 

Click Create new application:

 

raml_23

 

 

Here you can create a workflow, that other applications or scheduled event can trigger. Click the plus (+) symbol after the trigger and select the Bizagi API:

 

raml_24

 

Select the OData method that you want to invoke:

 

raml_25

 

 

For example you can select Start a case.

 

You first need to create a configuration, where you define the URL of  the Bizagi environment, and credentials. Then click the module to add a connector configuration:

 

raml_28

 

Set the host as the URL of your Bizagi environment, and the credentials are the OAuth 2 Client ID and Client secret:

 

raml_29

 

This is a POST method, so it requires inputs. Consult the input structure in the asset's configuration, in the Exchange module of Anypoint, or in our OData index. Depending on the method selected, you have different configuration variables. Click the payload and set the body of the input:

 

raml_26

 

 

Then register the process ID:

 

raml_27

 

Finally test the workflow by clicking the Test button at the top-right corner:

 

raml_30

 

Open the Bizagi API module, and review the output, find the method response. In this example, the response incluldes the case number created.

 

raml_31

 

You can find the same case number created in your Bizagi environment Work Portal.

 

raml_32