Skip to content

Instantly share code, notes, and snippets.

View Noordsestern's full-sized avatar
😈
Kill your heroes and fight

Markus Noordsestern

😈
Kill your heroes and fight
View GitHub Profile
@Noordsestern
Noordsestern / Fetch-check-pass.robot
Last active September 15, 2021 10:16
Example of skipping execution CamundaLibrary version 1
*** Tasks ***
Run Robot Service Task
FOR ${i} IN RANGE 0 ${BATCH_SIZE}
${workload} fetch workload my_task_topic_name
${fetched_process_instance} Get fetch response
Pass execution if not $fetched_process_instance Finshed processing ${i} process instances
do something with workload ${workload}
END
@Noordsestern
Noordsestern / get_all_active_process_instances.py
Created November 24, 2020 21:04
Uses generic camunda client for fetching all active process instances from Camunda
from generic_camunda_client import Configuration, ApiClient, ApiException, ProcessInstanceApi, ProcessInstanceDto
import generic_camunda_client
def get_all_process_instances(process_definition_key):
"""
Returns a list of process instances that are active for a certain process definition identified by key.
"""
configuration = Configuration(host='http://localhost:8080')