The community will be in read-only from Tuesday 11:59pm (PST) to Wednesday 7:30am (PST)
The community will be in read-only from Tuesday 11:59pm (PST) to Wednesday 7:30am (PST)
Operations Orchestration Practitioners Forum
cancel
Showing results for 
Search instead for 
Did you mean: 

Changing the ReturnCode in a Groovy script

Highlighted
dsalkin
Super Collector

Changing the ReturnCode in a Groovy script

Hi,

 

In an operation's scriptlet the returnCode can be set like this:

 

scriptletContext.putGlobal("Code", "-1");

 

How do you get the context and do the same within a Groovy operation?

 

Thanks,

 

David Salkin

HP SaaS AnM (Automation and Monitoring Group)

 

//Add this to "OnDomLoad" event