Oracle Waveset 8.1.1 Resources Reference

Resource Action Context

Several global variables may be expected within the context of the scripted action.

Object

Description

hostAccess 

TN3270 emulator; an instance of com.waveset.adapter.HostAccess. It is used for sending and receiving keystrokes and commands to/from the mainframe.

hostAccessLogin 

Instance of a class that implements the com.waveset.adapter.HostAccessLogin interface. It is mainly provided because it implements the logoff() method that may be required in the event of a failure during the login process.

identity 

A string that contains the accountId for the user on the resource. 

user 

Contains the name of the administrative user that should be logged on. 

userAttrs 

An instance of java.util.Map containing values for each of the Resource User Attributes needed by the action

password 

Encrypted object which stores the password of the mainframe user; use password.decryptToString() to convert to plain text. 

system 

mainframe system name 

out 

Instance of java.io.PrintStream. If the Javascript writes to this stream (for example, out.print(“Hello”) ), the contents will be traced, and will be shown in the UI results displayed for resource actions.

err 

An instance of java.io.PrintStream. If the Javascript writes to this stream (for example, err.print(“Error”)), the contents will be traced, and will be shown in the UI results displayed for resource actions.