Show/Hide Toolbars

Inventu Viewer+ Single Signon Server Extension

Actions contains compilers and handlers for the actions that follow each WhenState setting.  In addition the ActionFunction class is contained in this source file and handles, at this time, the @GenPW function.

 

IScreenAction Interface

The IScreenAction interface provides runtime support with a simple name property and Exec method:

 

 public bool Exec(HostScreen oScreen, Dictionary<string, object> connectInfo)

 

ScreenActions Class

ScreenActions class principally provides a number of static methods and properties for managing individual action class objects, and the runtime.

 

public static void Log(string when, string text)

The Log method can be called by any other class in the InventuSSO assembly and will log with timestamp to InventuSSO..log which will be written in the same folder as the InventuSSO.dll is executed in.  This is called if there are exceptions or more frequently if Tracing is on.

public static IScreenAction ActionFactory(string name, string initText)

The ActionFactory is a static method for compiling individual actions--it creates an object based on the initialization text and returns it as a IScreenAction.

 

public static bool Exec(Host host, HostScreen oScreen, Dictionary<string, object> connectInfo, bool inBound = false)

Exec is a static method that will evaluate active screen definitions, identify active screen, identify active WhenState and then run the actions inside that WhenState.

 

Action Classes

Action classes perform the action as described in the WhenState help section.  Each class has a name property and Exec method and a constructor that has the "right side" of the Action=[parameters] from the configuration file.

 

public class ActionDisconnect : IScreenAction

public class ActionSaveCredentials : IScreenAction

public class ActionGetMessage : IScreenAction

public class ActionEnter : IScreenAction

public class ActionPutField : IScreenAction

public class ActionLogEvent : IScreenAction

public class ActionRedact : IScreenAction

public class ActionSetField : IScreenAction

public class ActionSetState : IScreenAction