Copyright © Cloud Software Group, Inc. All Rights Reserved |
• Login - interface for performing application login
• Logout - interface for performing application logoutThe Login component provides an interface for logging into a TIBCO iProcess Objects Server.This component displays the Login dialog, which accepts the user’s credentials and allows the user to choose a server to log into.The Login dialog contains the following fields:
• User Name - A user must be established on the TIBCO iProcess Objects Server for the user to be able to login.
• Password - A password may or may not be required, depending on how the TIBCO iProcess Objects Server has been configured.
• Server - This field presents a drop-down list of available TIBCO iProcess Objects Servers. This list is obtained from the application’s config.xml file.None — The Login component does not require that any data be passed to it to be displayed, that is, it does not need to subscribe to an event of another component.The Login component contains the following property:
Enables / disables the Remember User Id and Server next time I login check box, which allows users to persist their user name (User Id field) and the TIBCO iProcess Objects Server they chose from the Server drop-down list.The Login component publishes the following event:
The Logout component provides an interface for logging out of a TIBCO iProcess Objects Server.The Logout component requires a user name and iProcess Objects Server name to log the user out of the server. This component should subscribe to the “Login Complete” event on the Login component.The Logout component publishes the following event:
Event fires when the user clicks the Logout button.
Table 1 WCC Component Methods setName(name)
• name <string> - The component name. setCompModelName (name)
• name <string> - The component model name. setPrototypeModelName (name)
• name <string> - The prototype model name.
Table 2 Login Methods
• app <com.tibco.bpm.wcc.Application> - The application instance.
• username<string> - The user's ID.
• password <string> - The password.
• servername <string> - The displayNodeName value to lookup in config.xml that defines the server node nodeCtx values. If null, the remainder of the parameters need to be specified, otherwise, they are optional.
• computername <string> - The iProcess Objects Server name. (optional)
• ipaddress <string> - The iProcess Objects Server IP address. (optional)
• tcpport <string> - The iProcess Objects Server TCP port.
• name <string> - The iProcess Objects Server node name.
• director <boolean> - Is server a director?
• app <com.tibco.bpm.wcc.Application> - The application instance.This example shows how a direct login could be made using the doLogin method. In this example, the wcc.Login instance could have been added using the appMain prototype (with paintable = jsx3.Boolean.FALSE) or created directly as shown. This sample might be added to the postLoadInit() method defined in:
Table 3 Logout Method doLogout() Logs the current user out of an iProcess Objects Server. It publishes the logoutRequest event before processing the logout request.
•
• Create the wcc.Logout instance.
• Set the app property to the current application instance.
• Call the doLogout() method.
• Call the postLogoutComplete() method.Note that no subscription is set up for logoutComplete to call this.
Copyright © Cloud Software Group, Inc. All Rights Reserved |