Changing the ReturnCode in a Groovy script (66 Views)
Reply
Advisor
dsalkin
Posts: 30
Registered: ‎06-07-2012
Message 1 of 1 (66 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)

 

Please use plain text.
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