Platform Explorer / Nuxeo Platform LTS 2019 10.10

Operation Document.AddFacet (Add Facet)

Description

Adds the facet to the document.

Save parameter automatically saves the document in the database. It has to be turned off when this operation is used in the context of the empty document created, about to create, before document modification, document modified events.

Operation id Document.AddFacet
AliasesDocument.AddFacet
Category Document
Label Add Facet
Requires
Since

Parameters

Name Description Type Required Default value
facet string yes  
save boolean no true 

Signature

Inputs document, documents
Outputs document, documents

Implementation Information

JSON Definition

{
  "id" : "Document.AddFacet",
  "aliases" : [ "Document.AddFacet" ],
  "label" : "Add Facet",
  "category" : "Document",
  "requires" : null,
  "description" : "Adds the facet to the document. <p>Save parameter automatically saves the document in the database. It has to be turned off when this operation is used in the context of the empty document created, about to create, before document modification, document modified events.</p>",
  "url" : "Document.AddFacet",
  "signature" : [ "document", "document", "documents", "documents" ],
  "params" : [ {
    "name" : "facet",
    "description" : "",
    "type" : "string",
    "required" : true,
    "widget" : null,
    "order" : 0,
    "values" : [ ]
  }, {
    "name" : "save",
    "description" : "",
    "type" : "boolean",
    "required" : false,
    "widget" : null,
    "order" : 0,
    "values" : [ "true" ]
  } ]
}