Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Kinvey Collections

Kinevy DSO Setup

After we set the Kinvey parameters in the pasoe-config.xml file, for the dataSource we can use the SimpleSwatBusinessEntity.

Here, we would need to set 2 attributes:

  • SUBTYPE : 'KinveyCollection' (without the quotes)
  • resourceName: name-of-camunda-collection


Kinvey Custom Endpoints

Custom endpoints are defined on the Application Environment settings. They can be called from the frontend using akioma.InvokeServerTask. A custom endpoint is linked to a service flex function. Essentially, when a custom endpoint is called, we are calling the the flex function defined in the service.

Custom endpoints can be defined on the application environment from the Business Logic → Custom Endpoints:

Image Added


Click on the add new Endpoint button, give the new endpoint a name and select the Business Logic Type. In our case, that is Microservice (Execute a handler function running inside a Flex Services Runtime service). Once the endpoint is created, select the service, then environment and finally the handler function:

Image Added


Kinvey Calling the Custom Endpoints

Calling a Kinvey custom endpoint is done using akioma.InvokeServerTask.

The only thing we need to specify is the methodType: "kinvey" in the request.


akioma.invokeServerTask({
       name: "completeTask", 
       methodType: "kinvey", 
       paramObj: { 
               id: "id-of-task"
       }
})
.then(resp => { //process response// }  );