camunda BPM 7.2.0-alpha4 released: CMMN Listener, Tasklist, Spin, Connect

By
  • Blog
  • >
  • camunda BPM 7.2.0-alpha4 released: CMMN Listener, Tasklist, Spin, Connect
TOPICS

30 Day Free Trial

Bring together legacy systems, RPA bots, microservices and more with Camunda

Sign Up for Camunda Content

Get the latest on Camunda features, events, top trends, and more.

TRENDING CONTENT
Today we release the next alpha release of camunda BPM platform. The highlights of this release are:

  • CMMN Listener support
  • Embedded Forms in Tasklist
  • JSON support in Spin
  • JSON to Java mapping with Spin
  • Simple REST HTTP Connector
 

Add Listeners to your CMMN Case Definitions

As the CMMN support of our platform steadily increases we started to add features known from our BPMN implementation. With this alpha release you can add camunda:caseExecutionListener to plan items and camunda:taskListener to human tasks:

<?xml version="1.0" encoding="ISO-8859-1" standalone="yes"?>
<definitions id="_7f0c94c0-2a22-445d-b4b7-4fd181e08248"
                  xmlns="http://www.omg.org/spec/CMMN/20131201/MODEL"
                  xmlns:camunda="http://camunda.org/schema/1.0/cmmn"
                  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                  targetNamespace="Examples">
  <case id="case" name="Case">

    <casePlanModel id="CasePlanModel_1">
         
      <extensionElements>
        <!-- Case execution listener which calls a delegate expression if the case is closed -->
        <camunda:caseExecutionListener event="close" delegateExpression="${myListener}" />
      </extensionElements> 
    

      <planItem id="PI_HumanTask_1" definitionRef="HumanTask_1" />

      <humanTask id="HumanTask_1" name="A HumanTask">
        <extensionElements>
        
          <!-- Case execution listener which calls a delegate class if the human task is suspend -->
          <camunda:caseExecutionListener event="suspend" 
            class="org.camunda.bpm.cmmn.listener.MyExecutionListener" />
            
          <!-- Task listener which evaluates an expression if the human task is assigned -->
          <camunda:taskListener event="assignment" 
            expression="${myTaskListener.notify(task, task.eventName)}" />
            
        </extensionElements>
      </humanTask>

    </casePlanModel>

  </case>

</definitions>

Case execution listener can be added for the following state transitions: close, complete, create, disable, enable, exit, manualStart, occur, parentResume, parentSuspend, parentTerminate, reactivate, re-enable, resume, start, suspend and terminate. Task listener on human tasks are triggered for the following events: assignment, complete, create and delete. Case execution listeners and task listeners on human task which do not specify a event will be triggered on all previous listed events.

The CMMN Listeners support all features of our BPMN Listeners like field injection or script execution.

Embedded forms in Tasklist

After a refactoring of our front end projects and infrastructure finally new features are arriving in the Tasklist. Embedded forms of processes and tasks are now visible in the Tasklist. There were some major changes to the forms SDK which will improve the performance and the variable handling of your forms. For a sneak peak of the new features see the docs of the camunda-bpm-sdk-js. Also tasks can now be assigned from the task list and are correctly displayed by the available filters.

Filtered tasklist with an embedded form
Filtered Tasklist with an embedded form. The assignee can be changed directly from the Tasklist.

camunda Spin JSON support

It is now possible to read, modify and write JSON with camunda Spin. For more information on all features please see the documentation.

// read JSON from String
SpinJsonNode json = JSON("{\"name\": \"camunda\", \"version\": \"7.2.0-alpha3\"}");

// read JSON object property as String
String version = json.prop("version").stringValue();

// calculate new version
int newVersion = Integer.valueOf(version.substring(version.length() - 1)) + 1;
version = version.substring(0, version.length() - 1 ) + newVersion;

// set JSON object property
json.prop("version", version);

// return JSON as String
System.out.println(json.toString());

Besides the manipulation of JSON it is also possible to map Java Objects to their JSON representation and vice versa. This feature will be used by the process engine to improve the serialization of Java Objects inside a process instance. It is already implemented in the core of the engine but not yet available from the public API.

Accessing REST APIs with camunda Connect

With the new camunda Connect REST HTTP Connector we provide a low level connector to access REST APIs from a BPMN process. A simple example process which demonstrates the new connector in combination with variable mappings and script execution can be found in our examples repository.

Try All Features of Camunda

Related Content

See how Funding Societies is taking advantage of process orchestration to automate their lending process, greatly improving outcomes for their customers.
Process blueprints can now be found on Camunda marketplace! Read on to learn how they can help you and how you can contribute.
Achieve operational superiority with the intelligent backbone of service orchestration. Learn how and why you should orchestrate your services.