cancel
Showing results for 
Search instead for 
Did you mean: 

How to get the value of the life cycle state in an automation chain ?

jour_
Champ in-the-making
Champ in-the-making

Hi,

I want to set a field of a document with the current value of its life cycle state.

In the studio I use a context variable in an automation chain and these three operations :

  • Fetch > Context Document(s)
  • Execution Context >Set Context Variable
  • Document > Update Property

The value I want could be "ecm:currentLifeCycleState", but it does not work.

Maybe I can use this fonction : "getCurrentLifeCycleState()", but I do not know the synthaxe...

Can somebody help me ?

PS : I work in 5.6

2 REPLIES 2

Vincent_Dutat
Confirmed Champ
Confirmed Champ

Hi,

the value to specify should be @{Document.lifeCycle}. You can click on the icon next to value's input to open the Expression Editor than can help you build expressions. See also Nuxeo documentation Use of MVEL in Automation Chains

jour_
Champ in-the-making
Champ in-the-making

OK, thank you !