[JBoss JIRA] (DROOLS-2841) [DMN Designer] Sort item definitions of the model
by Jozef Marko (JIRA)
[ https://issues.jboss.org/browse/DROOLS-2841?page=com.atlassian.jira.plugi... ]
Jozef Marko updated DROOLS-2841:
--------------------------------
Affects Version/s: 7.10.0.Final
> [DMN Designer] Sort item definitions of the model
> -------------------------------------------------
>
> Key: DROOLS-2841
> URL: https://issues.jboss.org/browse/DROOLS-2841
> Project: Drools
> Issue Type: Task
> Components: DMN Editor
> Affects Versions: 7.10.0.Final
> Reporter: Jozef Marko
> Assignee: Guilherme Carreiro
> Labels: drools-tools
>
> The DMN model file can contain custom item definitions. These are then shown in the data type picker dialog. Currently these definitions are not sorted in the dialog. We should sort them and their attributes alphabetically (a -> z).
> Possibility to change key for sorting shouldn't be implemented. If such requirement appears in future, will be implemented in separate jira.
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
7 years, 11 months
[JBoss JIRA] (DROOLS-2841) [DMN Designer] Sort item definitions of the model
by Jozef Marko (JIRA)
Jozef Marko created DROOLS-2841:
-----------------------------------
Summary: [DMN Designer] Sort item definitions of the model
Key: DROOLS-2841
URL: https://issues.jboss.org/browse/DROOLS-2841
Project: Drools
Issue Type: Task
Components: DMN Editor
Reporter: Jozef Marko
Assignee: Guilherme Carreiro
The DMN model file can contain custom item definitions. These are then shown in the data type picker dialog. Currently these definitions are not sorted in the dialog. We should sort them and their attributes alphabetically (a -> z).
Possibility to change key for sorting shouldn't be implemented. If such requirement appears in future, will be implemented in separate jira.
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
7 years, 11 months
[JBoss JIRA] (DROOLS-2840) Java Controller Client Websocket API - Unmarshal result/input incorrect
by Cristiano Nicolai (JIRA)
[ https://issues.jboss.org/browse/DROOLS-2840?page=com.atlassian.jira.plugi... ]
Cristiano Nicolai closed DROOLS-2840.
-------------------------------------
Resolution: Cannot Reproduce
> Java Controller Client Websocket API - Unmarshal result/input incorrect
> -----------------------------------------------------------------------
>
> Key: DROOLS-2840
> URL: https://issues.jboss.org/browse/DROOLS-2840
> Project: Drools
> Issue Type: Bug
> Components: kie server
> Affects Versions: 7.9.0.Final
> Reporter: Tri Doan Quang
> Assignee: Cristiano Nicolai
>
> I deployed Kie workbench & Kie server at version 7.9.0.Final
> and I am going to set up client by using websocket API as provided here:
> https://docs.jboss.org/drools/release/7.9.0.Final/drools-docs/html_single...
> {code:java}
> KieServerControllerClient client = KieServerControllerClientFactory.newWebSocketClient(URL_WS,
> USER,
> PASSWORD, new TestEventHandler());
> final ServerTemplateList serverTemplateList = client.listServerTemplates();
> System.out.println(String.format("Found %s server template(s) at controller url: %s",
> serverTemplateList.getServerTemplates().length,
> URL));
> {code}
> However, I got NPE since `serverTemplateList` is NULL.
> I dig to the code and observed:
> 1. Server responses in JSON format:
>
> {code:java}
> '{
> "type" : "SUCCESS",
> "msg" : "",
> "result" : {
> "server-template-list" : {
> "server-template" : [ {
> "server-id" : "kie-server-v1",
> "server-name" : "kie-server-v1",
> "container-specs" : [ ],
> "server-config" : { },
> "server-instances" : [ {
> "server-instance-id" : "kie-server-v1@192.168.1.6:8180",
> "server-name" : "kie-server-v1@192.168.1.6:8180",
> "server-template-id" : "kie-server-v1",
> "server-url" : "http://192.168.1.6:8180/kie-server/services/rest/server"
> } ],
> "capabilities" : [ "RULE", "PROCESS", "PLANNING" ]
> } ]
> }
> }
> }'
> {code}
> 2. But the decoder tries to unmarshall to the target object which is not defined well in JSON. It's defined in JAXB
>
> org.kie.server.controller.api.model.KieServerControllerServiceResponse
>
> {code:java}
> @XmlAttribute
> private ResponseType type;
> @XmlAttribute
> private String msg;
> @XmlElements({
> //Kie Server Controller model
> @XmlElement(name = "server-template-list", type = ServerTemplateList.class),
> @XmlElement(name = "server-template-details", type = ServerTemplate.class),
> @XmlElement(name = "server-template-key-list", type = ServerTemplateKeyList.class),
> @XmlElement(name = "server-template-key", type = ServerTemplateKey.class),
> @XmlElement(name = "container-spec-list", type = ContainerSpecList.class),
> @XmlElement(name = "container-spec-details", type = ContainerSpec.class),
> @XmlElement(name = "server-instance-key-list", type = ServerInstanceKeyList.class),
> @XmlElement(name = "server-instance-key", type = ServerInstanceKey.class),
> @XmlElement(name = "container-details-list", type = ContainerList.class)
> })
> private T result;
> {code}
> Similar issues when I tried to register Event notification from Websocket (given in above link). All values are null.
> I am not sure I am missing some configuration.
> Any one help me please? Many Thanks.
>
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
7 years, 11 months
[JBoss JIRA] (DROOLS-2840) Java Controller Client Websocket API - Unmarshal result/input incorrect
by Tri Doan Quang (JIRA)
[ https://issues.jboss.org/browse/DROOLS-2840?page=com.atlassian.jira.plugi... ]
Tri Doan Quang commented on DROOLS-2840:
----------------------------------------
Thanks [~cristiano.nicolai] [~swiderski.maciej]
I found the issue. It comes from the mismatch version of Jackson I am using.
I must downgrade to version 2.8.9 that Drools 7.9.0.Final is using to make it works.
Hope we already had plan to make it is compatible with new version of Jackson.
[~swiderski.maciej] [~cristiano.nicolai] Thanks a lot and you can close this ticket.
> Java Controller Client Websocket API - Unmarshal result/input incorrect
> -----------------------------------------------------------------------
>
> Key: DROOLS-2840
> URL: https://issues.jboss.org/browse/DROOLS-2840
> Project: Drools
> Issue Type: Bug
> Components: kie server
> Affects Versions: 7.9.0.Final
> Reporter: Tri Doan Quang
> Assignee: Cristiano Nicolai
>
> I deployed Kie workbench & Kie server at version 7.9.0.Final
> and I am going to set up client by using websocket API as provided here:
> https://docs.jboss.org/drools/release/7.9.0.Final/drools-docs/html_single...
> {code:java}
> KieServerControllerClient client = KieServerControllerClientFactory.newWebSocketClient(URL_WS,
> USER,
> PASSWORD, new TestEventHandler());
> final ServerTemplateList serverTemplateList = client.listServerTemplates();
> System.out.println(String.format("Found %s server template(s) at controller url: %s",
> serverTemplateList.getServerTemplates().length,
> URL));
> {code}
> However, I got NPE since `serverTemplateList` is NULL.
> I dig to the code and observed:
> 1. Server responses in JSON format:
>
> {code:java}
> '{
> "type" : "SUCCESS",
> "msg" : "",
> "result" : {
> "server-template-list" : {
> "server-template" : [ {
> "server-id" : "kie-server-v1",
> "server-name" : "kie-server-v1",
> "container-specs" : [ ],
> "server-config" : { },
> "server-instances" : [ {
> "server-instance-id" : "kie-server-v1@192.168.1.6:8180",
> "server-name" : "kie-server-v1@192.168.1.6:8180",
> "server-template-id" : "kie-server-v1",
> "server-url" : "http://192.168.1.6:8180/kie-server/services/rest/server"
> } ],
> "capabilities" : [ "RULE", "PROCESS", "PLANNING" ]
> } ]
> }
> }
> }'
> {code}
> 2. But the decoder tries to unmarshall to the target object which is not defined well in JSON. It's defined in JAXB
>
> org.kie.server.controller.api.model.KieServerControllerServiceResponse
>
> {code:java}
> @XmlAttribute
> private ResponseType type;
> @XmlAttribute
> private String msg;
> @XmlElements({
> //Kie Server Controller model
> @XmlElement(name = "server-template-list", type = ServerTemplateList.class),
> @XmlElement(name = "server-template-details", type = ServerTemplate.class),
> @XmlElement(name = "server-template-key-list", type = ServerTemplateKeyList.class),
> @XmlElement(name = "server-template-key", type = ServerTemplateKey.class),
> @XmlElement(name = "container-spec-list", type = ContainerSpecList.class),
> @XmlElement(name = "container-spec-details", type = ContainerSpec.class),
> @XmlElement(name = "server-instance-key-list", type = ServerInstanceKeyList.class),
> @XmlElement(name = "server-instance-key", type = ServerInstanceKey.class),
> @XmlElement(name = "container-details-list", type = ContainerList.class)
> })
> private T result;
> {code}
> Similar issues when I tried to register Event notification from Websocket (given in above link). All values are null.
> I am not sure I am missing some configuration.
> Any one help me please? Many Thanks.
>
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
7 years, 11 months
[JBoss JIRA] (DROOLS-2840) Java Controller Client Websocket API - Unmarshal result/input incorrect
by Cristiano Nicolai (JIRA)
[ https://issues.jboss.org/browse/DROOLS-2840?page=com.atlassian.jira.plugi... ]
Cristiano Nicolai commented on DROOLS-2840:
-------------------------------------------
[~doqtri] there is a sample project that I just updated to use version 7.9.0 that you can take a look as a reference, see: https://github.com/cristianonicolai/kie-server-controller-client-examples
If you can also send a stacktrace of the error, that would be helpful to identify the cause of this issue.
Regarding the annotations, that is not an issue as the JSON marshaller also inspects the JAXB annotations for serializing the content.
> Java Controller Client Websocket API - Unmarshal result/input incorrect
> -----------------------------------------------------------------------
>
> Key: DROOLS-2840
> URL: https://issues.jboss.org/browse/DROOLS-2840
> Project: Drools
> Issue Type: Bug
> Components: kie server
> Affects Versions: 7.9.0.Final
> Reporter: Tri Doan Quang
> Assignee: Cristiano Nicolai
>
> I deployed Kie workbench & Kie server at version 7.9.0.Final
> and I am going to set up client by using websocket API as provided here:
> https://docs.jboss.org/drools/release/7.9.0.Final/drools-docs/html_single...
> {code:java}
> KieServerControllerClient client = KieServerControllerClientFactory.newWebSocketClient(URL_WS,
> USER,
> PASSWORD, new TestEventHandler());
> final ServerTemplateList serverTemplateList = client.listServerTemplates();
> System.out.println(String.format("Found %s server template(s) at controller url: %s",
> serverTemplateList.getServerTemplates().length,
> URL));
> {code}
> However, I got NPE since `serverTemplateList` is NULL.
> I dig to the code and observed:
> 1. Server responses in JSON format:
>
> {code:java}
> '{
> "type" : "SUCCESS",
> "msg" : "",
> "result" : {
> "server-template-list" : {
> "server-template" : [ {
> "server-id" : "kie-server-v1",
> "server-name" : "kie-server-v1",
> "container-specs" : [ ],
> "server-config" : { },
> "server-instances" : [ {
> "server-instance-id" : "kie-server-v1@192.168.1.6:8180",
> "server-name" : "kie-server-v1@192.168.1.6:8180",
> "server-template-id" : "kie-server-v1",
> "server-url" : "http://192.168.1.6:8180/kie-server/services/rest/server"
> } ],
> "capabilities" : [ "RULE", "PROCESS", "PLANNING" ]
> } ]
> }
> }
> }'
> {code}
> 2. But the decoder tries to unmarshall to the target object which is not defined well in JSON. It's defined in JAXB
>
> org.kie.server.controller.api.model.KieServerControllerServiceResponse
>
> {code:java}
> @XmlAttribute
> private ResponseType type;
> @XmlAttribute
> private String msg;
> @XmlElements({
> //Kie Server Controller model
> @XmlElement(name = "server-template-list", type = ServerTemplateList.class),
> @XmlElement(name = "server-template-details", type = ServerTemplate.class),
> @XmlElement(name = "server-template-key-list", type = ServerTemplateKeyList.class),
> @XmlElement(name = "server-template-key", type = ServerTemplateKey.class),
> @XmlElement(name = "container-spec-list", type = ContainerSpecList.class),
> @XmlElement(name = "container-spec-details", type = ContainerSpec.class),
> @XmlElement(name = "server-instance-key-list", type = ServerInstanceKeyList.class),
> @XmlElement(name = "server-instance-key", type = ServerInstanceKey.class),
> @XmlElement(name = "container-details-list", type = ContainerList.class)
> })
> private T result;
> {code}
> Similar issues when I tried to register Event notification from Websocket (given in above link). All values are null.
> I am not sure I am missing some configuration.
> Any one help me please? Many Thanks.
>
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
7 years, 11 months
[JBoss JIRA] (DROOLS-2787) "Data Type" tree-grid table interactions.
by Michael Anstis (JIRA)
[ https://issues.jboss.org/browse/DROOLS-2787?page=com.atlassian.jira.plugi... ]
Michael Anstis commented on DROOLS-2787:
----------------------------------------
[~uxdlc] [~tirelli] [~karreiro] I like it a lot.
> "Data Type" tree-grid table interactions.
> -----------------------------------------
>
> Key: DROOLS-2787
> URL: https://issues.jboss.org/browse/DROOLS-2787
> Project: Drools
> Issue Type: Story
> Components: DMN Editor
> Reporter: Liz Clayton
> Assignee: Liz Clayton
> Labels: UX, UXTeam, drools-tools
> Attachments: DROOLS-2738.bmpr, Manage1.png, Manage2.png, Screen Shot 2018-07-24 at 3.51.03 PM.png, Screen Shot 2018-07-27 at 11.48.34 AM.png, Screen Shot 2018-07-27 at 12.24.49 PM.png, Screen Shot 2018-07-27 at 12.27.13 PM.png, add_basic.png, treegrid.png, type_definitions.pdf
>
>
> *Background*
> Persona: Business analyst or Rules practitioner
> Use Cases:
> As a user I want to:
> * *Edit* the list of Data Types, using the appropriate type considering the DMN model (eg: in the age line, we need to select "Numeric" in the combobox.)
> * *Add* a new data type, which might be a nested or otherwise complex object as defined by the (ItemDefinition.)
> * *Remove* Data Types from the list of available selections.
> * be prevented from making selections that are not valid or would cause an error.
> * know that when I edit a data type the changes will be updated in the DMN model.
> Functional considerations/ pre conditions:
> * Outside of simple view/select, Data Types list (and options) will be presented as a tree-grid within a modal dialog. Discussed in detail within Epic subtask for the same.
> * Design needs to be consistent with Stunner and PF components, such as: https://www.patternfly.org/pattern-library/widgets/#treegrid-table
> Verification conditions:
> * Scrum team and PO review.
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
7 years, 11 months