Skip to content

New keyword: Fetch and pass - Pass Execution if no workload fetched #24

@Noordsestern

Description

@Noordsestern

We often have a task template like this:

*** Settings ***
Library    CamundaLibrary    ${CAMUNDA_HOST}

*** Variables ***
${CAMUNDA_HOST}    %{CAMUNDA_HOST}
${BATCH_SIZE}    %{BATCH_SIZE}

*** 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

It would be nice, if condition for ending the task and fetching could be combined:

*** Tasks ***
Run Robot Service Task
    FOR    ${i}    IN RANGE    0     ${BATCH_SIZE}
       ${workload}    fetch and pass    my_task_topic_name    message=Finshed processing ${i} process instances
       do something with workload    ${workload}
    END

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions