Details
-
Task
-
Resolution: Unresolved
-
Major
-
False
-
False
-
Undefined
Description
The vision within BSIG is to have a single source code base for marshallers for a domain. The single source code being compiled to execute in different runtimes; i.e. JRE, GWT or Type/JavaScript.
The Score Card editor currently has a(n incomplete) bespoke (un)marshaller that only handles a small subset of the Score Card model, yet alone PMML.
In order to support features that have been identified as being required in the Score Card editor we need to be able to handle (un)marshalling much more of the complete model. Work to improve the marshaller is therefore of paramount importance to the new features and hence a priority.
This JIRA represents research into re-using the work started by dtikhomi@redhat.com whereby a JAXB/JSON annotated Java model can have (un)marshallers generated that target both JRE and GWT. We would then need to work collaboratively with others to complete the re-use in TypeScript.
Considerations:-
- JAXB annotations lead to the creation of Java POJOs during unmarshalling; that would then need to be exposed to TypeScript. It may be that we need to compile the marshallers with J2CL to better expose to TypeScript vs GWT compilation. We would have "Java" object creation and manipulation in TypeScript.
- JSON annotations lead to (un)marshallers emitting JSON. This may be a better fit for re-use in TypeScript.
Attachments
Issue Links
- is blocked by
-
KOGITO-5534 Codegen should use (un)marshallers for XmlElement(Ref) type
- Resolved
-
KOGITO-5668 Codegen should use (un)marshallers for XmlElement(Ref) type: Collections
- Resolved
-
KOGITO-5690 J2CL code generation runtime error
- Closed
-
KOGITO-5457 Different behaviour of (un)marshaller vs JAXB reference implementation
- Resolved
-
KOGITO-5499 Additional attributes being marshalled
- Resolved
-
KOGITO-5652 GwtExport should use interface name if present
- Closed
-
KOGITO-5669 PMML generated model has case sensitive classes
- Closed
-
KOGITO-5824 TypeScript integration
- Open
-
KOGITO-5640 Generated interfaces should extend base interfaces
- Open
-
KOGITO-5641 Move xml-mapper to JAXB 3.x and Jakarta JEE libraries
- Open
- is related to
-
FAI-270 Score Cards: Marshaller looses models (other than Scorecard)
- Backlog