[JBoss JIRA] Created: (JBRULES-1539) Support enum fields as drop-downs in BRMS
by Harlan Iverson (JIRA)
Support enum fields as drop-downs in BRMS
-----------------------------------------
Key: JBRULES-1539
URL: http://jira.jboss.com/jira/browse/JBRULES-1539
Project: JBoss Drools
Issue Type: Feature Request
Security Level: Public (Everyone can see)
Components: drools-brms
Environment: n/a
Reporter: Harlan Iverson
Assigned To: Mark Proctor
Priority: Optional
It would be nice if enum [real Java 5+] fields were first class citizens, and the BRMS UI had the same functionality as the BRMS-defined enums described in JBRULES-1090.
For example, if Driver.locationRiskProfile in the insurance example were changed to a RiskLevel enum, the BRMS would use reflection (or similar) to create a drop-down box based on the RiskLevel members.
Another optional extension of that would be the ability to assign displayed text for enums in the same way that JBRULES-1090 describes:
RiskLevel : ['LOW=Low Risk', 'MED=Medium Risk']
where LOW and MED would correspond to enum values.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
15 years, 10 months
[JBoss JIRA] Created: (JBXB-192) Incorrect particle is logged when trace is enabled
by Alexey Loubyansky (JIRA)
Incorrect particle is logged when trace is enabled
--------------------------------------------------
Key: JBXB-192
URL: https://jira.jboss.org/jira/browse/JBXB-192
Project: JBoss XML Binding (JBossXB)
Issue Type: Bug
Affects Versions: JBossXB-2.0.1.Beta2
Reporter: Alexey Loubyansky
Assignee: Alexey Loubyansky
Fix For: JBossXB-2.0.1.Beta3
In SundayContentHandler in the pop() method it should be cursor.getParticle() instead of cursor.getCurrentParticle().
private StackItem pop()
{
StackItem item = stack.pop();
if(trace)
{
if(item.cursor == null)
log.trace("poped " + ((ElementBinding)item.particle.getTerm()).getQName() + "=" + item.particle);
else
log.trace("poped " + item.cursor.getCurrentParticle().getTerm());
}
return item;
}
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
15 years, 10 months