New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to use the same input/output element in multi-instance #4687
Comments
Workaround is available: use different variable names for input and output element. |
Closed in favor of duplicate but up-to-date #7330 |
Reopened, because it's not the same case #7330. That issue was related to the output collection expression hiding the input collection variable. In this issue, the output element is NIL initialized after the input element is created. If they have the same name, the just created input element variable is overwritten (UPDATED) to NIL. Either it shouldn't be updated if it refers to the same element, or the NIL initialization should happen before the input element variable is created. |
Sev should be mid, it has a noticeable impact but a workaround is available. |
* style: convert variable panel tabs to carbon * test: add panel header test back * refactor: add undefined check for first tab * refactor: use default layer color
Describe the bug
Although undocumented, zeebe currently does not support referring to the same variable in the input element and the output element of a multi-instance element.
This is likely due to the nil initialisation of the output element variable (in the case that the output element expression is either a variable name or the name of a property of a variable).
To Reproduce
zbctl create instance Process_0ci0xjm --variables='{"Book":{"Title":"My Book","pages":[{"PageNumber":1,"IsRead":false},{"PageNumber":2,"IsRead":false}]}}'
Expected behavior
In the above case, I expect the variable
page
:pages
) at the end of the multi-instance body.Environment:
The text was updated successfully, but these errors were encountered: