Skip to content

1.8.1 : Configurable Lock Duration, Get Process Instances, Notify failure, Get Incidents

Compare
Choose a tag to compare
@Noordsestern Noordsestern released this 13 Sep 12:47
· 37 commits to master since this release
5720f31

#28 : Retrieve lock duration for task from environment variable

Lock duration for external tasks can now be set through environment variable : CAMUNDA_TASK_LOCK_DURATION . Value is in millisecond (1000 = 1 second). Default is 600000 (10 minutes).

The feature comes with 2 new keywords:

  • Set Task Lock Duration
  • Reset Task Lock Duration

#34 : Get Process Instances

There was already the keyword Get All Active Process Instances. Additionally, it is now possible with Get Process Instances to query all kind of process instances from Camunda. Check out full capabilities at Camunda REST API documentation. Also keep in mind that in Robot the parameters are written in snake case, thus it is process_definition_key instead of processDefinitionKey

#7 : Introducing incident management

There are now 2 new keywords:

  • Notify failure
  • Get incidents

Example

*** Settings ***
Library    CamundaLibrary    http://localhost:8080

*** Tasks ***
Demonstrate "notify failure"
    ${varialbes}     fetch workload   topic=${existing_topic}
    ${process_instance}    Get fetch response

    Do something with variables    ${variables}

    Notify failure

    ${incident}    Get incidents    process_instance_id=${process_instance}[process_instance_id]
    Should Not Be Empty    ${incident}

Notify failure

In addition to complete, unlock, throw bpmn error the new keyword notify failure is the 4th option to finish an external task. By calling notify failure an incident is created and the process instance is not available for the fetch workload keyword until the incident is resolved.

Get incidents

With the keyword Get incidents you can fetch incidents that match your filter arguments.