This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
*** 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
*** 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
*** Settings *** | |
Library RequestsLibrary | |
Library json | |
*** Variables *** | |
${START_BEFORE} 2021-08-01T00:00:00.000+0200 | |
${CAMUNDA_URL} http://localhost:8080 | |
*** Tasks *** | |
Get history |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from fastapi import FastAPI, Response, Request | |
import json | |
from json import JSONDecodeError | |
app = FastAPI() | |
webhook_call = {} | |
@app.get('/all') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
*** Settings *** | |
Library RequestsLibrary | |
Library Collections | |
Library json | |
Test Setup Prepare test case | |
*** Test Cases *** | |
Test webhook with Text | |
${payload_text} Set Variable Hello World |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pip3 install robotframework-webservice | |
python3 -m RobotFrameworkService.main -t . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
INFO: Started server process [9276] | |
INFO: Waiting for application startup. | |
INFO: Application startup complete. | |
INFO: Uvicorn running on http://0.0.0.0:5003 (Press CTRL+C to quit) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ghcr.io/marketsquare/robotframework-browser/rfbrowser-stable:12.3.0 | |
WORKDIR /robot | |
COPY . . | |
USER root | |
RUN chown -R pwuser:pwuser /robot | |
USER pwuser |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gcloud run deploy |
OlderNewer