Changing the ReturnCode in a Groovy script (118 Views)
Reply
Advisor
Posts: 30
Registered: ‎06-07-2012
Message 1 of 1 (118 Views)

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)

 

The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.