Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Noordsestern opened this issue Jun 4, 2021 · 0 comments
Open
Labels
enhancement New feature or request
Milestone

Comments

@Noordsestern
Copy link
Member

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
@Noordsestern Noordsestern added the enhancement New feature or request label Jun 4, 2021
@Noordsestern Noordsestern added this to the 3.0.0 milestone Dec 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant