Skip to content
New issue

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

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

Already on GitHub? # to your account

Add action to wait for process instance to be created #19

Open
pihme opened this issue Sep 29, 2020 · 0 comments
Open

Add action to wait for process instance to be created #19

pihme opened this issue Sep 29, 2020 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@pihme
Copy link
Contributor

pihme commented Sep 29, 2020

Is your feature request related to a problem? Please describe.
Currently I can only interact with process instances that were created by the test itself. I do not know about process instances that were created by the engine (e.g. event sub-processes, call activities).
What is needed is a way to:

  • wait until a process instance of a given ID has been created
  • assign some kind of (indexed) alias to identify the created process

Describe the solution you'd like
Something along those lines:

     - action: await-instance
        args:
          bpmn_process_id: sub-process
          workflow_instance_alias: C

This still doesn't address how to identify the third process instance being created, but it would be a step forward.

Describe alternatives you've considered

  • Add a service task at the begin of a subprocess. The job activation would be a proxy for the workflow creation. However, I am not aware of any way to get the process Id and feed it back to the test enigne; also it would be not clear at all in the test spec what is going on
  • Some way of using an action to query the tree of nested processes and then based on the query result move forward; didn't really make much sense, to be honest.
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
Status: 1️⃣ Good First Issue
Development

No branches or pull requests

2 participants