11-09-2011 02:31 PM
I am working on a plugin and I am at the point where querying complex properties would come handy. Sadly, even thought my query seems correct, it doesn't work, and I have no idea why it doesn't, or whether it should work at all with the Nuxeo version I am using.
The query is the following:
SELECT * FROM ConservationRule WHERE conservation:delays/semiactive = 2
Querying the following schema fragment:
<xs:complexType name="delaysType">
<xs:sequence>
<xs:element name="delay" type="am:conservationDelay" minOccurs="0" maxOccurs="unbounded" />
</xs:sequence>
</xs:complexType>
The error message I get is the following:
org.nuxeo.ecm.core.api.ClientException: Failed to execute query: No such property: conservation:delays/semiactive
at org.nuxeo.ecm.core.api.AbstractSession.query(AbstractSession.java:1555)
at org.nuxeo.ecm.core.api.AbstractSession.query(AbstractSession.java:1446)
at com.rlnx.nuxeo.am.tests.AmAnythingTest.testComplexPropertyNXQL(AmAnythingTest.java:13)
I have set my plugin to use version 5.4.3-SNAPSHOT, or 5.4.3-I20111024_2229. Both give the same result.
11-09-2011 06:11 PM
What is your version of Nuxeo?
If the version is not the trunk of Nuxeo you will not have the possibility to do that. We introduce Query on Complex Type for Nuxeo 5.5. See Here.
Nuxeo 5.5 will be released really soon.
Hope, will help you...
11-09-2011 06:11 PM
What is your version of Nuxeo?
If the version is not the trunk of Nuxeo you will not have the possibility to do that. We introduce Query on Complex Type for Nuxeo 5.5. See Here.
Nuxeo 5.5 will be released really soon.
Hope, will help you...
11-09-2011 07:30 PM
I had not spotted the Fix Version entry on this bug, but your documentation on doc.nuxeo.com seems to indicate that queries on complex properties will be available in Nuxeo 5.4.3. I expected that a development version of 5.4.3 would have that feature.
11-14-2011 08:53 AM
There won't be a 5.4.3 release, it is replaced by 5.5.<br>
11-14-2011 09:49 AM
The documentation is currently being updated to follow those changes.
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.