User Action: Current document has life cycle ......NOT!?

I can use the Current document has life cycle to filter by life cycle, and even use a comma separated list (OR) to filter for multiple life cycles.

Question:

Is there a NOT function?

I have many (50-100) life cycle states I need to pass and only one or two I want to filter. Is there a way to say pass all except StateA, StateB?

0 votes

1 answers

1595 views

ANSWER



Looks like if I use a custom EL expression like:

#{layoutValue.currentLifeCycleState != 'LifeCycleA' && layoutValue.currentLifeCycleState != 'LifeCycleB'}

I can filter only two life cycle states as outlined in my question, passing all others.

0 votes



Is that an edit on your original question or an answer?
05/10/2012

I was intended to be an answer, however see :http://answers.nuxeo.com/questions/2597/can-a-user-action-custom-el-expression-handle-a-compound-boolean-of-more-than-two-clauses
05/10/2012