cancel
Showing results for 
Search instead for 
Did you mean: 

Using Automation Script params with a variable passed from the automation chain

Matthew_Roy
Champ on-the-rise
Champ on-the-rise

Hello,

I am having an issue with passing params to my Automation Script via an Automation Chain.

My Automation Script has one parameter value called 'ConditionalValue' that will be used to perform some validation checks before performing a specific process.

The Automation Chain has a section where the Context Variable named 'ConditionalValue' is set through a different process. Once this value is set, I then pass it into the params as @{ConditionalValue}.

Within the JS, I am able to print params.conditionalValue, but it is not the actual value of the object; rather, it is coming out as this:

params.conditionalValue == org.nuxeo.ecm.automation.core.scripting.MvelExpression@696a7345

Because this is not the value of what was passed in, I cannot perform any validation checks.

How can we access the values of these Java objects that are passed in as params to the Automation Script?

Thanks!

1 REPLY 1

Gregory_Carlin
Elite Collaborator
Elite Collaborator

Hello,

Why not using a single automation scripting? It will be way easier no?

Regards,

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.