cancel
Showing results for 
Search instead for 
Did you mean: 

Setting multi-valued property in automation chain

Dirk_Wenke
Confirmed Champ
Confirmed Champ

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

3 REPLIES 3

Dirk_Wenke
Confirmed Champ
Confirmed Champ

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.

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

milonette_
Star Collaborator
Star Collaborator
Getting started

Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.