-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
[JBPM-9774] Incorrect object type returned in a DMN business-rule task of a BPMN #1947
Conversation
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.
some questions, please?
jbpm-test-coverage/src/test/java/org/jbpm/test/functional/task/BusinessRuleTaskTest.java
Outdated
Show resolved
Hide resolved
jbpm-test-coverage/src/test/java/org/jbpm/test/functional/task/BusinessRuleTaskTest.java
Outdated
Show resolved
Hide resolved
jbpm-test-coverage/src/test/resources/org/jbpm/test/functional/task/buildPersonDecision.dmn
Outdated
Show resolved
Hide resolved
cc71911
to
c33a65c
Compare
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.
not resolved.
#1947 (comment)
please leave the editor usage standard.
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.
looks good to me, thank you @elguardian ! 🚀
Kudos, SonarCloud Quality Gate passed! |
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.
@elguardian thank you for the PR. It seems to be working fine. I found just a single issue related to years and moths duration/java.time.Period.
I was not able to successfully map years and months duration
from DMN into java.time.Period
in BPMN/Java.
See commented parts of my PR elguardian#6
Is that something I should report separately, or I just selected wrong BPMN/Java type for years and months duration
?
maybe just needs/missing something along the lines of ? |
@tarilabs thank you, that works perfect for object serializing! See: However the What is your opinion about it. It is a separate issue, as it not anymore about returned object type? |
I don't understand the question @jomarko , sorry? When a DMN model returns a ComparablePeriod as part of the decision results, this would allow the underlying Jackson to serialize it as a usual Period in the ISO format. I believe once deserialized by Jackson to the Java Pojo type of the process variable, the Pojo would have the Period as a type of the field. |
@tarilabs ok, let me try put it differently.
works, while
Throws an error:
What is for me hard to decide if:
|
I would expect a process variable would be of type |
See related PR: - kiegroup/jbpm#1947
@elguardian hello, sorry, this PR was not ready for merge from my point of view. There is no ack from QE side. Also please notice I prepared PR where I fix some cases of mapping DMN types indo BPMN/Java types. #1947 (comment) Without addressing them or reporting them separately, we can not mark JBPM-9774 as done. |
@jomarko provide a proper test plz. The test you provided is not using the new code. For the code make it work you need to provide class loader and runtime manager. |
@elguardian working on tests updates as #1952 However I would like to ask update your added tests. I checked the newly created asset |
@jomarko This was requested by DMN support for generic collections. the problem is in stunner in this case. please file a jira to stunner team so they can allow this sort of mapping. |
@elguardian I got the same for |
Jira: https://issues.redhat.com/browse/JBPM-9774