[JBoss JIRA] (DROOLS-3727) [DMN Designer] Quick Silver: Minimal standalone preparation
by Kris Verlaenen (Jira)
[ https://issues.jboss.org/browse/DROOLS-3727?page=com.atlassian.jira.plugi... ]
Kris Verlaenen updated DROOLS-3727:
-----------------------------------
Sprint: 2019 Week 11-13, 2019 Week 14-16, 2019 Week 17-19, 2019 Week 20-22 (was: 2019 Week 11-13, 2019 Week 14-16, 2019 Week 17-19)
> [DMN Designer] Quick Silver: Minimal standalone preparation
> -----------------------------------------------------------
>
> Key: DROOLS-3727
> URL: https://issues.jboss.org/browse/DROOLS-3727
> Project: Drools
> Issue Type: Task
> Components: DMN Editor
> Reporter: Michael Anstis
> Assignee: Michael Anstis
> Priority: Critical
> Labels: Stunner, drools-tools, submarine
> Fix For: 8.0.0.Final
>
>
> Prepare a minimal DMN Designer standalone WAR that only supports _standalone_ mode.
> No Home Page, no Library, No preferences, no other editors.
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
7 years, 2 months
[JBoss JIRA] (DROOLS-3015) [DMN Designer] Prohibit parallel item definition edition
by Kris Verlaenen (Jira)
[ https://issues.jboss.org/browse/DROOLS-3015?page=com.atlassian.jira.plugi... ]
Kris Verlaenen updated DROOLS-3015:
-----------------------------------
Sprint: 2019 Week 17-19, 2019 Week 20-22 (was: 2019 Week 17-19)
> [DMN Designer] Prohibit parallel item definition edition
> --------------------------------------------------------
>
> Key: DROOLS-3015
> URL: https://issues.jboss.org/browse/DROOLS-3015
> Project: Drools
> Issue Type: Task
> Components: DMN Editor
> Affects Versions: 7.12.0.Final
> Reporter: Jozef Marko
> Assignee: Daniel José dos Santos
> Priority: Major
> Labels: drools-tools
> Attachments: DMCommunity Challenge - March 2017.dmn, Screenshot from 2018-09-24 13-00-45.png
>
>
> We should prohibit parallel edit operation of item definitions in managa custom data type dialog. It brings troubles in different scenarios:
> h2. Save parent item
> # Open attached dmn model
> # Invoke manage custom data type dialog
> # Expand *tProfile* item
> # Click on edit next to *tProfile (Structure)*
> # Click on edit next to *Name (string)*
> # Change *Name* to *Name_updated*
> # Change *tProfile* to *tProfile_updated*
> # Click *Save* next *tProfile_updated*
> # Save button for *Name_updated* will disappear
> # Changes saved just for parent item *tProfile_updated*
> h2. Save referred items
> # Open attached dmn model
> # Invoke manage custom data type dialog
> # Click on edit next to *tGender (string)*
> # Click on edit next to *tGenders (tGender)*
> # Rename *tGender* to *tGender_updated*
> # Click *Save* next *tGender_updated*
> # The data type select box for *tGenders* will disappear, see
> ## !Screenshot from 2018-09-24 13-00-45.png|thumbnail!
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
7 years, 2 months
[JBoss JIRA] (DROOLS-1540) Drools does not work with spring-boot-devtools
by Fabio Bonfante (Jira)
[ https://issues.jboss.org/browse/DROOLS-1540?page=com.atlassian.jira.plugi... ]
Fabio Bonfante edited comment on DROOLS-1540 at 5/13/19 8:51 AM:
-----------------------------------------------------------------
I add just two cents on the "issue" sharing my experience on another corner-case... (sadly) Java serialization.
I was able to use the documented work-around, I've a spring-devtools.properties with:
{noformat}
restart.include.drools-core=/drools-core-7.0.0.Final.jar
restart.include.drools-compiler=/drools-compiler-7.0.0.Final.jar
restart.include.kie-api=/kie-api-7.0.0.Final.jar
restart.include.kie-ci=/kie-ci-7.0.0.Final.jar
restart.include.kie-internal=/kie-internal-7.0.0.Final.jar
{noformat}
But in a rule using java serialization, I got an amazing:
{noformat}
Caused by: java.lang.ClassCastException: com.example.OrderREO cannot be cast to com.example.OrderREO
at rules.com.example.CloneWithServiceCode.cloneWithServiceCode(CloneWithServiceCode.java:55) ~[na:na]
at rules.com.example.Rule_My_Rule_621849765706.defaultConsequence(My_Rule_621849765706.java:9) ~[na:na]
at rules.com.example.Rule_My_Rule_621849765706DefaultConsequenceInvokerGenerated.evaluate(Unknown Source) ~[na:na]
at rules.com.example.Rule_My_Rule_621849765706DefaultConsequenceInvoker.evaluate(Unknown Source) ~[na:na]
at org.drools.core.phreak.RuleExecutor.innerFireActivation(RuleExecutor.java:431) ~[drools-core-7.0.0.Final.jar:7.0.0.Final]
... 129 common frames omitted
{noformat}
Given that I'll have to wipe-out every form of Java Serialization from the rules... (the Object.clone() was so tempting for our business-rules team... and they didn't knows the drawbacks) I would like to know if I missed to specify some jar in the spring-devtools.properties.
Thank's in advance.
was (Author: fabio.bonfante):
I add just two cents on the "issue" sharing my experience on another corner-case... (sadly) Java serialization.
I was able to use the documented work-around, I've a spring-devtools.properties with:
{{restart.include.drools-core=/drools-core-7.0.0.Final.jar
restart.include.drools-compiler=/drools-compiler-7.0.0.Final.jar
restart.include.kie-api=/kie-api-7.0.0.Final.jar
restart.include.kie-ci=/kie-ci-7.0.0.Final.jar
restart.include.kie-internal=/kie-internal-7.0.0.Final.jar
}}
But in a rule using java serialization, I got an amazing:
{{Caused by: java.lang.ClassCastException: com.example.OrderREO cannot be cast to com.example.OrderREO
at rules.com.example.CloneWithServiceCode.cloneWithServiceCode(CloneWithServiceCode.java:55) ~[na:na]
at rules.com.example.Rule_My_Rule_621849765706.defaultConsequence(My_Rule_621849765706.java:9) ~[na:na]
at rules.com.example.Rule_My_Rule_621849765706DefaultConsequenceInvokerGenerated.evaluate(Unknown Source) ~[na:na]
at rules.com.example.Rule_My_Rule_621849765706DefaultConsequenceInvoker.evaluate(Unknown Source) ~[na:na]
at org.drools.core.phreak.RuleExecutor.innerFireActivation(RuleExecutor.java:431) ~[drools-core-7.0.0.Final.jar:7.0.0.Final]
... 129 common frames omitted}}
Given that I'll have to wipe-out every form of Java Serialization from the rules... (the Object.clone() was so tempting for our business-rules team... and they didn't knows the drawbacks) I would like to know if I missed to specify some jar in the spring-devtools.properties.
Thank's in advance.
> Drools does not work with spring-boot-devtools
> ----------------------------------------------
>
> Key: DROOLS-1540
> URL: https://issues.jboss.org/browse/DROOLS-1540
> Project: Drools
> Issue Type: Bug
> Components: core engine
> Affects Versions: 6.5.0.Final, 7.20.0.Final
> Reporter: G Xiong
> Assignee: Mario Fusco
> Priority: Critical
> Attachments: complete.zip
>
>
> Drools does work with spring-boot-devtools.
> If you add in pom.xml the following, no rules will be fired in Drools.
> <dependency>
> <groupId>org.springframework.boot</groupId>
> <artifactId>spring-boot-devtools</artifactId>
> </dependency>
> if you comment out this, then rules will be fired in Drools.
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
7 years, 2 months
[JBoss JIRA] (DROOLS-1540) Drools does not work with spring-boot-devtools
by Fabio Bonfante (Jira)
[ https://issues.jboss.org/browse/DROOLS-1540?page=com.atlassian.jira.plugi... ]
Fabio Bonfante commented on DROOLS-1540:
----------------------------------------
Another, maybe, useful update on using the workaround.
The blamed serialization code in the rule was:
{code:java}
OrderREO newOrder = (OrderREO) SerializationUtils.clone(order);
{code}
So, I tried adding the jar to the {{spring-devtools.properties}} (apache commons-lang-2.4 in my case),
{noformat}
restart.include.commons-lang2=/commons-lang-2.4.jar
{noformat}
and it worked.
> Drools does not work with spring-boot-devtools
> ----------------------------------------------
>
> Key: DROOLS-1540
> URL: https://issues.jboss.org/browse/DROOLS-1540
> Project: Drools
> Issue Type: Bug
> Components: core engine
> Affects Versions: 6.5.0.Final, 7.20.0.Final
> Reporter: G Xiong
> Assignee: Mario Fusco
> Priority: Critical
> Attachments: complete.zip
>
>
> Drools does work with spring-boot-devtools.
> If you add in pom.xml the following, no rules will be fired in Drools.
> <dependency>
> <groupId>org.springframework.boot</groupId>
> <artifactId>spring-boot-devtools</artifactId>
> </dependency>
> if you comment out this, then rules will be fired in Drools.
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
7 years, 2 months