Difference between revisions of "I2Camunda"

From i2Rest
Jump to: navigation, search
(i2Camunda as an External Task processor for Camunda)
m (i2Camunda output parameters)
Line 31: Line 31:
 
* [[i2Camunda_i2rest_get_access_token|i2rest_get_access_token]] - to get Access code (second step of OAuth2 Access code flow in i2Rest Bridge mode)
 
* [[i2Camunda_i2rest_get_access_token|i2rest_get_access_token]] - to get Access code (second step of OAuth2 Access code flow in i2Rest Bridge mode)
 
=i2Camunda output parameters=
 
=i2Camunda output parameters=
We are still working on this topic. Please contact contacts@i2rest.com if you would like to get information asap
 
  
 
=Handling i2Camunda BPMN errors=
 
=Handling i2Camunda BPMN errors=

Revision as of 17:28, 3 August 2020

i2Camunda is a separate extension for i2Rest Server, which is designed to organize the interaction of the Camunda BPM engine with IBM i programs and commands via i2Rest Server APIs.

What is Camunda

Camunda is currently one of the most prominent players in the business process automation industry. From wikipedia:

Camunda BPM is an open-source workflow and decision automation platform. Camunda BPM ships with tools for creating workflow and decision models, operating deployed models in production, and allowing users to execute workflow tasks assigned to them. It is developed in Java and released as open-source software under the terms of Apache License.
It provides a Business Process Model and Notation (BPMN) standard compliant workflow engine and a Decision Model and Notation (DMN) standard compliant decision engine, which can be embedded in Java applications and with other languages via REST.[1]

More details can be found at the Camunda's official site

i2Camunda as an External Task processor for Camunda

The concept of external tasks is well described on the Camunda official documentation website: https://docs.camunda.org/manual/latest/user-guide/process-engine/external-tasks/
i2Camunda plays the role of the External worker in this concept. i2Camunda is a batch job on IBM i, which subscribes to specific topic(s) and consume calls to REST APIs of i2Rest Server:
I2Camunda owerview.png
This diagram shows communications on the simplest BPMN process. The upper part displays the business process configured and executed in the Camunda environment, the lower part shows the interaction of i2Rest and i2Camunda, that works natively on IBM i platform

  • After submitting, i2Camunda subscribes to Camunda as an external worker that will process external tasks with "I2CAMUNDA" topic
  • When some Camunda's business process will reach external task with such topic, i2Camunda will get peace of job to work
  • i2Camunda will call i2Rest Service in accordance with external task parameters defined in the BPMN diagram
  • Output parameters of RPGLE program will be passed to Camunda as a process variables, and task will be marked as Completed

i2Camunda input parameters

In order to pass parameters to i2Camunda, it is required to define external task's Input parameter:
I2camunda parameters.PNG
Task's input parameter "i2camunda_parameters" has to contain all data required to call REST API. It can contain one of the following objects, depending on the function that is required to call:

i2Camunda output parameters

Handling i2Camunda BPMN errors

i2Camunda configuration

Sample processes

How to install i2Camunda

How to start i2Camunda instance