Skip to content

Instantly share code, notes, and snippets.

@CognitiveDave
Created January 29, 2022 15:49
Show Gist options
  • Save CognitiveDave/2f82e4f2683f320f113c5caa93cedfd1 to your computer and use it in GitHub Desktop.
Save CognitiveDave/2f82e4f2683f320f113c5caa93cedfd1 to your computer and use it in GitHub Desktop.
creating instances in a workflow
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