Created
January 29, 2022 15:49
-
-
Save CognitiveDave/2f82e4f2683f320f113c5caa93cedfd1 to your computer and use it in GitHub Desktop.
creating instances in a workflow
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
filesd = ["/home/david/Downloads/test.pdf", | |
"/home/david/Downloads/test2.pdf", | |
"/home/david/Downloads/test3.pdf", | |
"/home/david/Downloads/test4.pdf" | |
] | |
url = 'http://localhost:8080/engine-rest' | |
worker_id = '1' | |
for filei in filesd: | |
start_instance = pycamunda.processdef.StartInstance(url=url, key='randomNumberProcess') | |
start_instance.add_variable(name='file_name', value=filei) | |
start_instance() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment