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>

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) ?


Thanks

Fred

_______________________________________________
ECM mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm

Reply via email to