cancel
Showing results for 
Search instead for 
Did you mean: 

How can I modifiy Paste/Move behaviour in Nuxeo?

ycmorissette_
Champ in-the-making
Champ in-the-making

I would like to be able to modify the behaviour of the "Move" and "Copy" links in the "WorkList" and "Clipboard", as some of our DocumentTypes, once they reach a certain (lifecycle) state, should not be modified. The Immutable facet does not seem to work for this purpose.

Is there a good way to implement something like that?

1 REPLY 1

Benjamin_Jalon1
Elite Collaborator
Elite Collaborator

There are multiple ergonomics ways to implements that first. Do you want to filter "not movable" documents when the user click on move/copy or do you want to disable is when a "not movable" documents are present into the list ?

For the first way, you can do it though Studio easily. You disable the default button and implement yours with an automation chain that filters the liste of documents... Something like:

  • Fetch > Fetch Context Document
  • Execution Context > Save Context Variable From Input
  • Fetch > UI Clipboard
  • Document > Filter list
  • Document > Move / Copy

For the second solution, you also override the default copy/move buttons but you will have to implement a seam component that will check if there is a non movable document into the clipboard. If so disable it through an JEXL expression into the User Action definition.

Hope this will help.

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.