Setting multi-valued property in automation chain

Hi, I have a problem with my automation chain I defined in Nuxeo Studio. The automation chain is bound to an event handler which react on the “Document Created” event. The automation chain should do the following: If a document is created with a specific parent document, some property of the parent document should be added to the newly created document. But the property is a multi-valued string property.

I created the automation chain as described in one of the tutorials:

  • Fetch > Context Document(s)
  • Push & Pop > Push document
  • Document > Get Parent
  • Execution Context > Set Context Variable
  • Push & Pop > Pop Document
  • Document > Update Property

In “Set Context Variable” I retrieve the value of the property from the parent (expr:@{Document[“schema:myProperty”]}) and store it in a context variable. In “Update Property” I set the value for the same property on the created document ().

This seems to work fine for single valued properties, but after I made the property multi-valued, I got exceptions when creating the new child document:

javax.el.ELException: org.nuxeo.ecm.core.api.ClientException: Failed to get document /default-domain/myWorkspace/ParentDocument/ChildDocument

Should this work the same way for multi-valued properties, or is there any other way to achieve this?

Thanks, Dirk

0 votes

2 answers



0 votes

I solved this problem now by writing my own EventListener and managing the things programmatically. But as far as I can see this cannot be solved by configuration in Nuxeo Studio.

0 votes

I have the same problem. How can I store multi-valued property in Nuxeo Studio ?