CamundaCon 2023 ― The Process Orchestration Conference of the Year on Sep 27-28

Save your Seat

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

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

30 Day Free Trial

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

Join the Camunda Developer Newsletter

Get the latest events, release notes, and product updates straight to your mailbox.

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"
  <case id="case" name="Case">

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

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

      <humanTask id="HumanTask_1" name="A HumanTask">
          <!-- 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)}" />




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

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 Platform

Related Content

Did you know that you can keep your process instances moving with Operate? Learn how in this tutorial.
Event-streaming technology has many advantages. Learn how your business processes can benefit from using it for process orchestration.
Combining a process orchestration solution like Camunda with an observability solution like Instana can break down silos and help teams better understand their systems.