cancel
Showing results for 
Search instead for 
Did you mean: 

Filter in Event Handler

Benjamin_Jalon1
Elite Collaborator
Elite Collaborator

I would like to put a complex filtering in Event Handler in automation, and I see there is "Custom EL Expression". It seems that default JSF EL not working in it.

Can you tell me how it works ?

1 ACCEPTED ANSWER

Benjamin_Jalon1
Elite Collaborator
Elite Collaborator

You are right JSF EL does not work into this field, Nuxeo used the same language your are using into Automation chains except, you don't need to add @{}.

  • So for the currentDocument title: Document.getProperty("dc:title")
  • Equality with: ==
  • String value: with double quote: "

=> so enabled Event Handler if title is toto : Document.getProperty("dc:title") == "toto"

  • Current user: CurrentUser.name
  • Lock Owner: Document.isLocked()
  • And: &&
  • Or: ||

=> check if lockowner is the current user: Document.isLocked() && Document.doc.getLockInfo().getOwner() == CurrentUser.getName()

  • etc...

Nuxeo is conscient that there is different kind of EL language into the platform, we plan to work on a normalization about that.

Hope this helps others Nuxeo users. 😄

View answer in original post

5 REPLIES 5

Benjamin_Jalon1
Elite Collaborator
Elite Collaborator

You are right JSF EL does not work into this field, Nuxeo used the same language your are using into Automation chains except, you don't need to add @{}.

  • So for the currentDocument title: Document.getProperty("dc:title")
  • Equality with: ==
  • String value: with double quote: "

=> so enabled Event Handler if title is toto : Document.getProperty("dc:title") == "toto"

  • Current user: CurrentUser.name
  • Lock Owner: Document.isLocked()
  • And: &&
  • Or: ||

=> check if lockowner is the current user: Document.isLocked() && Document.doc.getLockInfo().getOwner() == CurrentUser.getName()

  • etc...

Nuxeo is conscient that there is different kind of EL language into the platform, we plan to work on a normalization about that.

Hope this helps others Nuxeo users. 😄

Answers updated

I think there is a mistake.

hmmm don't think so

Sorry, you're right, i modified the answer.

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.