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.
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.