Operations Orchestration Practitioners Forum
cancel

Changing the ReturnCode in a Groovy script

Highlighted
dsalkin
Respected Contributor.

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)