[jboss-jira] [JBoss JIRA] (DROOLS-4680) [DMN Designer] BC DOs as DMN DTs - Create backend service that receives a Data Object and generate a Data Type
Michael Anstis (Jira)
issues at jboss.org
Fri Oct 25 04:04:00 EDT 2019
[ https://issues.jboss.org/browse/DROOLS-4680?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13804358#comment-13804358 ]
Michael Anstis commented on DROOLS-4680:
----------------------------------------
See https://gist.github.com/karreiro/eade2f63ce8bdbc6d76c5b59ec7ead77
{code}
// -- Data Object
class Person {
private UUID id;
private String name;
private Address address;
}
// -- Dependent Data Objects
class UUID {
private Integer value;
}
class InternalCache {
private UUID id;
private Map<String, String> values;
}
class Cache {
private InternalCache internalCache;
private UUID id;
}
class Context {
private Cache cache;
private UUID id;
}
class Entity {
private UUID id;
private Context ctx;
private org.apache.commons.Bla bla;
}
class City {
private Entity entity
private String cityName;
}
class Address {
private String street;
private City city;
}
// -- Expected Data Type
- Person
- id (structure)
- value (number)
- name (string)
- address (structure)
- street (string)
- city (structure)
- entity (structure)
- id (structure)
- value (number)
- ctx (structure)
- id (structure)
- value (number)
- cache (structure)
- internalCache (Any) // <- We don't inspect after the 5th level
- id (structure)
- value (number)
- bla (Any) // <- We don't inspect non-data-object types
- cityName (string)
{code}
> [DMN Designer] BC DOs as DMN DTs - Create backend service that receives a Data Object and generate a Data Type
> --------------------------------------------------------------------------------------------------------------
>
> Key: DROOLS-4680
> URL: https://issues.jboss.org/browse/DROOLS-4680
> Project: Drools
> Issue Type: Task
> Components: DMN Editor
> Reporter: Guilherme Gomes
> Assignee: Michael Anstis
> Priority: Major
> Labels: drools-tools
>
> Create backend service that receives a Data Object and generate a Data Type.
> Service characteristics:
> - The service supports only Data Objects from the current project (it won't support external dependencies)
> - The imported data object is analysed with 5 levels of introspection
> - Simple java types are mapped to built in DMN data types, Integer, Double -> number, String -> string, etc. But, fields that cannot be inferred are considered “Any”
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
More information about the jboss-jira
mailing list