[JBoss JIRA] Created: (JBRULES-2227) nested DSL Constraints don't work because compiler adds comma at beginning
by Frederik Reifschneider (JIRA)
nested DSL Constraints don't work because compiler adds comma at beginning
--------------------------------------------------------------------------
Key: JBRULES-2227
URL: https://jira.jboss.org/jira/browse/JBRULES-2227
Project: JBoss Drools
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: drools-compiler-DSL
Affects Versions: 5.0.1.FINAL
Reporter: Frederik Reifschneider
Assignee: Mark Proctor
Priority: Minor
The following DSL expression:
[condition]When there are {facts} which dont match constraints=not( forall ( {facts}( )))
[condition]When there is a {fact} with the following constraints={fact} ( )
[condition]- {field} has a value={field} != null
[condition]- {field} has no value={field} == null || matches "[\S]*"
with the rule:
When there are Projects which dont match constraints
- description has no value
- objectives has a value
produces:
not( forall ( ProjectRow(, description == null || matches "[S]*", objectives != null )))
everything works just as expected except the comma in front of "description".
When using the rule "When there is a {fact} with the following constraints" everything works fine as described in the documentation.
--
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
16 years, 6 months
[JBoss JIRA] Created: (JBXB-219) SchemaBindingValidator: unbounded choice as unordered sequence
by Alexey Loubyansky (JIRA)
SchemaBindingValidator: unbounded choice as unordered sequence
--------------------------------------------------------------
Key: JBXB-219
URL: https://jira.jboss.org/jira/browse/JBXB-219
Project: JBoss XML Binding (JBossXB)
Issue Type: Bug
Affects Versions: JBossXB-2.0.2.Beta1
Reporter: Alexey Loubyansky
Assignee: Alexey Loubyansky
Fix For: JBossXB-2.0.2.GA
Unbounded choice should be equivalent to unordered sequence binding. E.g.
<xsd:element name="root">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="a" type="xsd:string" maxOccurs="unbounded"/>
<xsd:element name="b" type="xsd:string" maxOccurs="unbounded"/>
</xsd:choice>
</xsd:complexType>
</xsd:element>
@JBossXmlSchema(namespace="urn:jboss:xb:test", elementFormDefault=XmlNsForm.QUALIFIED)
@XmlRootElement(name="root")
@JBossXmlType(modelGroup=JBossXmlConstants.MODEL_GROUP_UNORDERED_SEQUENCE)
public class UnorderedSequenceType
{
private Collection<String> a;
private Collection<String> b;
...
--
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
16 years, 6 months