Fred wrote: > Hi, > > I'm trying to get all workspace documents that are in the 'imported' > lifecycle state. (In my application, a lifecycle is assigned to all > workspaces and at creation, a workspace is set at the 'imported' state, > which seems to work fine) > > I don't know which fields I am supposed to use as filters in my request > . I've been trying this one: > > <queryModel name="routing_available_packages"> > <pattern> > SELECT * FROM document WHERE jcr:primaryType = 'ecmdt:Workspace' > AND ecm:lifecycleCurrentState = 'imported' > </pattern> > </queryModel>
It should be ecm:currentLifeCycleState
> but I get no documents.
> the fieldname 'ecm:lifecycleCurrentState' must be wrong because the
> following code
> 'documentManager.getCurrentLifeCycleState(myWorkspace.getRef()));'
> returns 'imported' as expected.
>
> What should I do ?
>
> Is there any documentation about this and more generally about the
> 'system' fields/values used (i.e. 'jcr:primaryType' and
> 'ecmdt:Workspace' for example) ?
J.
--
Julien Anguenot | Nuxeo R&D (Paris, France)
Open Source ECM - http://www.nuxeo.com
Nuxeo 5 : http://www.nuxeo.org
Mobile: +33 (0) 6 72 57 57 66
signature.asc
Description: OpenPGP digital signature
_______________________________________________ ECM mailing list [email protected] http://lists.nuxeo.com/mailman/listinfo/ecm
