-
Notifications
You must be signed in to change notification settings - Fork 0
Description
Create a process instance after any detected change:
c8 watch --run path/to/some.bpmn
Optionally allow for variables to be passed along:
c8 watch --run path/to/some.bpmn --variables='{"orderId":"12345","amount":100}'
create process instances for multiple BPMNs in multiple folders:
c8 watch --run /this/one/file.bpmn --variables='{"orderId":"12345","amount":100}' --run all/here/incl/subdirs/** all/in/this/*
for a single file reference, variables can be passed along.
single asterisk means "only in this folder", double asterisk means "this folder and all subfolders".
for the single asterisk and the asterisk wildcard, the variables should be passed to all found bpmns.
generally, allow for absolute and single paths.
and log the started process instances after the detected changes. if multiple files are referenced via --run (denoted by single or double asterisks), also log the found .bpmn file names.
the --run flag must work differently than the "run" command and should not deploy the referenced bpmn(s), but only create process instances for them.
add a lot of e2e tests for this to iron out edge cases. make sure to properly isolate them. use existing bpmns, dmns and forms in the project.