Establishes a session for a user on a Business Process Server (BP Server), or provides a user access to a session that has already been established. This session will be on the server that was defined by the connection string passed to the constructor for the associated Progress.BPM.UserSession object.
Use this set of Connect( ) method overloads to connect a user to a BP Server. This method establishes a connection to a BP Server for a user. For a new connection, pass in the user name and password. You can also use a client-principal object for a new connection. If the connection succeeds, a sealed client-principal object will be created containing the username and SessionID value. The domain name of the user will be set to "bpm" and the login-state of the client-principal will be set to "SSO". The returned unique SessionId property value is set on the UserSession object. To re-connect to an existing session, pass in your unique SessionId value.
Return type: LOGICAL
Access: PUBLIC
Applies to: Progress.BPM.UserSession class
Connect ( INPUT username AS CHARACTER, INPUT password AS CHARACTER ) Connect ( INPUT hCP as HANDLE ) Connect ( INPUT session-id AS CHARACTER ) |
If the method succeeds, it returns TRUE and sets the SessionId property. If the method fails, it raises a BPM error.
A UserSession object that already has a valid connection (and has not subsequently disconnected) raises an OpenEdge error when Connect( ) is called, and the connection will remain unchanged. A UserSession object becomes disconnected when it calls Disconnect( ) or when it encounters a communication error attempting to access its associated Business Process Server.