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
RHPAM-2182 - Multiple Instance data input and output lack of Data Typ… #3130
Conversation
Jenkins execute full downstream build |
War file for tests can be found here: https://drive.google.com/open?id=1lCkuMAjUTR4yqD5CMPnWxJPuXz1P8woK |
Hi @LuboTerifaj, there are some information to simplify runtime testing: I didn’t found how to see the difference between specific type and Object on KieServer, so I tested only in Business Central. Possible usecases (I tested it on Firefox)
ImportantName field just smoke tested (it remains the same as before the change). UpdateBusiness Central project to use to test MI Input/Output variables at runtime: https://github.com/bpmn-tutorials/MITest |
Jenkins execute full downstream build |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @hasys
Did a code review, just added a few comments, great job, thx!! 👍
Will also test the UI and let you know
...ent/forms/fields/multipleInstanceVariableEditor/MultipleInstanceVariableEditorPresenter.java
Outdated
Show resolved
Hide resolved
...ent/forms/fields/multipleInstanceVariableEditor/MultipleInstanceVariableEditorPresenter.java
Show resolved
Hide resolved
...ent/forms/fields/multipleInstanceVariableEditor/MultipleInstanceVariableEditorPresenter.java
Outdated
Show resolved
Hide resolved
...forms/fields/multipleInstanceVariableEditor/MultipleInstanceVariableEditorPresenterTest.java
Outdated
Show resolved
Hide resolved
Jenkins execute full downstream build |
Hi @LuboTerifaj, I applied findings from @romartin and added some coverage. I rebuilded it locally and here you can download latest version: https://drive.google.com/open?id=1n-J_d7jrNzP7ogk4D2NYQRg5hBHT-9JP Sonar cloud failing due to duplication in marshallers (backend and client side), so I suppose we can ignore it until we will solve duplication issue in it's root (not part of this PR). Thank you! |
Jenkins execute full downstream build |
SonarCloud Quality Gate failed. 0 Bugs |
Jenkins execute full downstream build |
@LuboTerifaj, @romartin, hurray, we have green Full Downstream build, thanks @mbiarnes! I did a quick test against Acceptance Criteria with Full Downstream build in Firefox and didn't found any issues. @LuboTerifaj the SonarCloud is red due to duplications in marshallers only, but it is inevitable now since we have two copies of Marshallers. So, it is all ready for the review by all canons :) , thank you! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hello @hasys ,
I've found one issue:
- If you select any type of variable in editor except String, it is always String in runtime.
- It may be caused by missing possibility to define custom collections such as List, etc. in process variable definition section. MI Collections properties list the defined collections.
The issue is already reported as JBPM-7882). - In the ideal case, the variable type should be taken from collection, but the behaviour is currently postponed to next releases and it is tracked by BAPL-1519.
- However, if the variable type is always String in the runtime, I don't see any advantages to have possibility to change it in editor.
- It may be caused by missing possibility to define custom collections such as List, etc. in process variable definition section. MI Collections properties list the defined collections.
Can you please have a look at this issue?
I have uploaded multiple-instance-process.bpmn to RHPAM-2182 where you can check the behaviour when you just slightly modify the process.
Thank you!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @hasys , thanks for the changes, code looks good to me! So letting @LuboTerifaj continue with the runtime testing. Thanks guys!
Hi @LuboTerifaj, I prepared Business Central project for tests: https://github.com/bpmn-tutorials/MITest This example will send Person object to sub-process and gets Person back. Try to change data type of the in/out variables and you will get an error. For example I changed Person type inside of the sub-process to Boolean and got this result at runtime:
Let me know if you have any other questions. Thank you! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
…e definition