Hi there.
I'm trying to create a document with an optional (dynamic) Facet, but it's not working.
I'm using java-client 1.0 with Nuxeo 7.10 HF-24.
My code is as follows:
Document doc = new Document(name, "MyType");
doc.set("dc:title", "Doc Title");
doc.setFacets(Arrays.asList("MyFacet"));
doc.set("myfacet:attr1", "xpto");
doc = nuxeo.repository().createDocumentByPath(parentPath, doc);
The document is created, but the facet and its attributes are not there.
How to accomplish that using Nuxeo Java Client?
I don't want that Facet to be mandatory in MyType, since it is not applicable for all document instances.
Thanks in advance.
Daniel Viero.