[JBoss JIRA] (DROOLS-3477) MVEL: expression (1 + 2 * 3 + 4 * $v ) causes "no such method or function " for bind variable
by Mario Fusco (Jira)
[ https://issues.jboss.org/browse/DROOLS-3477?page=com.atlassian.jira.plugi... ]
Mario Fusco updated DROOLS-3477:
--------------------------------
Sprint: 2019 Week 02-04
> MVEL: expression (1 + 2 * 3 + 4 * $v ) causes "no such method or function " for bind variable
> -----------------------------------------------------------------------------------------------
>
> Key: DROOLS-3477
> URL: https://issues.jboss.org/browse/DROOLS-3477
> Project: Drools
> Issue Type: Bug
> Components: core engine
> Affects Versions: 7.11.0.Final
> Environment: MVEL2 2.4.2 Final
> Reporter: Hiroko Miura
> Assignee: Mario Fusco
> Priority: Major
> Attachments: mvel2-var-test2.zip
>
>
> Similar issue was reported and fixed in DROOLS-2854, there is another pattern which does not work.
> When MVEL evaluates
> m.setStatus( 1 + 2 * 3 + 4 * m.getStatus() );
> the following exception happens.
> {noformat}
> Exception executing consequence for rule "Hello World" in com.sample: [Error: no such method or function: m]
> [Near : {... m.setStatus( 1 + 2 * 3 + 4 * m.getStatus() ); ....}]
> {noformat}
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
5 years, 6 months
[JBoss JIRA] (WFLY-11568) Provide way to retrieve VirtualFile instance from url.openConnection()
by Tomas Hofman (Jira)
Tomas Hofman created WFLY-11568:
-----------------------------------
Summary: Provide way to retrieve VirtualFile instance from url.openConnection()
Key: WFLY-11568
URL: https://issues.jboss.org/browse/WFLY-11568
Project: WildFly
Issue Type: Enhancement
Reporter: Tomas Hofman
Assignee: Tomas Hofman
It is not possible to obtain VirtualFile (and by extensions it's physicalFile) instance wrapped in VirtualFileURLConnection without using reflection.
Code snippet from Drools [1], where they try to get hold of {{VirtualFile#getPhysicalFile()}}:
{code}
private static Object findVirtualFile( URL url ) throws IOException {
URLConnection urlConnection = url.openConnection();
try {
if ( urlConnection.getClass().getName().equals( "org.jboss.vfs.protocol.VirtualFileURLConnection" ) ) {
Field f = urlConnection.getClass().getDeclaredField( "file" );
f.setAccessible( true );
return f.get( urlConnection );
}
} catch (NoSuchFieldException | IllegalAccessException e) {
// ignored
}
return urlConnection.getContent();
}
{code}
[1] https://github.com/kiegroup/drools/commit/2a36f67a29ed06d0f980a60ff1c81fa...
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
5 years, 6 months
[JBoss JIRA] (WFLY-11567) Provide way to retrieve VirtualFile instance from url.openConnection()
by Tomas Hofman (Jira)
[ https://issues.jboss.org/browse/WFLY-11567?page=com.atlassian.jira.plugin... ]
Tomas Hofman moved JBVFS-208 to WFLY-11567:
-------------------------------------------
Project: WildFly (was: JBoss VFS)
Key: WFLY-11567 (was: JBVFS-208)
Workflow: GIT Pull Request workflow (was: classic default workflow)
Fix Version/s: (was: 3.5.0.Alpha1)
> Provide way to retrieve VirtualFile instance from url.openConnection()
> ----------------------------------------------------------------------
>
> Key: WFLY-11567
> URL: https://issues.jboss.org/browse/WFLY-11567
> Project: WildFly
> Issue Type: Enhancement
> Reporter: Tomas Hofman
> Assignee: Tomas Hofman
> Priority: Major
>
> It is not possible to obtain VirtualFile (and by extensions it's physicalFile) instance wrapped in VirtualFileURLConnection without using reflection.
> Code snippet from Drools [1], where they try to get hold of {{VirtualFile#getPhysicalFile()}}:
> {code}
> private static Object findVirtualFile( URL url ) throws IOException {
> URLConnection urlConnection = url.openConnection();
> try {
> if ( urlConnection.getClass().getName().equals( "org.jboss.vfs.protocol.VirtualFileURLConnection" ) ) {
> Field f = urlConnection.getClass().getDeclaredField( "file" );
> f.setAccessible( true );
> return f.get( urlConnection );
> }
> } catch (NoSuchFieldException | IllegalAccessException e) {
> // ignored
> }
> return urlConnection.getContent();
> }
> {code}
> [1] https://github.com/kiegroup/drools/commit/2a36f67a29ed06d0f980a60ff1c81fa...
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
5 years, 6 months
[JBoss JIRA] (DROOLS-3272) [DMN Designer] Data-type dialog: Improve support for adding multiple fields
by Michael Anstis (Jira)
[ https://issues.jboss.org/browse/DROOLS-3272?page=com.atlassian.jira.plugi... ]
Michael Anstis commented on DROOLS-3272:
----------------------------------------
[~karreiro] I think we could however since this requirement came from [~tirelli] it might be best he agrees too.
> [DMN Designer] Data-type dialog: Improve support for adding multiple fields
> ---------------------------------------------------------------------------
>
> Key: DROOLS-3272
> URL: https://issues.jboss.org/browse/DROOLS-3272
> Project: Drools
> Issue Type: Enhancement
> Components: DMN Editor
> Affects Versions: 7.14.0.Final
> Reporter: Michael Anstis
> Assignee: Guilherme Carreiro
> Priority: Major
> Labels: drools-tools
>
> Requested by [~tirelli]
> {quote}
> When adding fields on the Data Types dialog, I would like to add multiple fields without having to click "add field below" after each one. Also, when I add a field, it shouldn't force me to click "edit" to set the name of the field.
> {quote}
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
5 years, 6 months
[JBoss JIRA] (JBVFS-208) Provide way to retrieve VirtualFile instance from url.openConnection()
by Tomas Hofman (Jira)
Tomas Hofman created JBVFS-208:
----------------------------------
Summary: Provide way to retrieve VirtualFile instance from url.openConnection()
Key: JBVFS-208
URL: https://issues.jboss.org/browse/JBVFS-208
Project: JBoss VFS
Issue Type: Enhancement
Reporter: Tomas Hofman
Assignee: Tomas Hofman
Fix For: 3.5.0.Alpha1
It is not possible to obtain VirtualFile (and by extensions it's physicalFile) instance wrapped in VirtualFileURLConnection without using reflection.
Code snippet from Drools [1], where they try to get hold of {{VirtualFile#getPhysicalFile()}}:
{code}
private static Object findVirtualFile( URL url ) throws IOException {
URLConnection urlConnection = url.openConnection();
try {
if ( urlConnection.getClass().getName().equals( "org.jboss.vfs.protocol.VirtualFileURLConnection" ) ) {
Field f = urlConnection.getClass().getDeclaredField( "file" );
f.setAccessible( true );
return f.get( urlConnection );
}
} catch (NoSuchFieldException | IllegalAccessException e) {
// ignored
}
return urlConnection.getContent();
}
{code}
[1] https://github.com/kiegroup/drools/commit/2a36f67a29ed06d0f980a60ff1c81fa...
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
5 years, 6 months
[JBoss JIRA] (DROOLS-2948) [DMN Designer] Change of selected data structure
by Guilherme Carreiro (Jira)
[ https://issues.jboss.org/browse/DROOLS-2948?page=com.atlassian.jira.plugi... ]
Guilherme Carreiro updated DROOLS-2948:
---------------------------------------
Story Points: 1
> [DMN Designer] Change of selected data structure
> ------------------------------------------------
>
> Key: DROOLS-2948
> URL: https://issues.jboss.org/browse/DROOLS-2948
> Project: Drools
> Issue Type: Bug
> Components: DMN Editor
> Affects Versions: 7.11.0.Final
> Reporter: Jozef Marko
> Assignee: Guilherme Carreiro
> Priority: Major
> Labels: drools-tools
> Attachments: Port Clearance Rules - Solution 3.dmn
>
>
> When user changes the currently selected data type, this change is not propagated into properties panel. User has to reopen the properties panel or reselect the element to load changes.
> h2. Manual acceptance test
> - Steps to reproduce fixed.
> - Check removed item definition is not present in output data-type select box.
> -- Was selected as output data type
> -- Was selected as output data type of other node
> -- Was not selected as output data-type
> - Check added *top level* item definition *is present* in output data type select box
> - Check added *nested level* item definition *is not present* in output data type select box
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
5 years, 6 months