How to call an Automation Chain from another Automation Chain script (5.8)

Hi.

How can I use some condition statments in a Automation Chain?

I found some explanation in this topic http://answers.nuxeo.com/questions/321/condition-in-an-automation-chain

But, the “Execution Flow > Run Operation” is not present anymore on 5.8 version.

I'm trying run this operation whith Scripting -> Run Script (@{mediaSelected.type == “Media”?deleteMedia:raiseMessage2}) Where, “deleteMedia” and “raiseMessage2” are Automation Chains previusly created.

But, the error message is: “Error: unresolvable property or identifier: deleteMedia”

I don't know how can I call the Automations Chain from another Automation Chain script and which operations I can perform (as creation, deletion, rename, etc).

Please, some help? Some documentation link?

0 votes

1 answers

1424 views

ANSWER



Hello,

You can process as follow:

Execution Flow > Run Document Chain (Id:@{Document[«dc:title»]==‘A value’?«ChainA»:«ChainB»})
2 votes



Hi Vladimir.

I'm sorry my late.

Your sugestion works, with a little modification. Execution Flow > Run Document Chain (Id:@{Document[«dc:title»]==‘A value’?"ChainA":"ChainB"})

Thanks a lot.

03/04/2014

Hi Sergio,

Thanks for your feedback. But just a little question if possible, which difference have you made? Is it about the double quotes?

Thanks

03/04/2014

It doesn't works without the " "
03/05/2014