This class allows you to connect to a Business Process Server and access the server’s functionality. An ABL application creates ABL BPM objects that represent objects that reside on the Business Process server, and it is through these ABL objects that a developer interacts with the server. Many of these objects can be created through UserSession methods (Progress.BPM.Process, which you can create only by calling StartProcess( ) on a UserSession object, is an example), and some can be created through methods on classes that you get from UserSession. The lifetime of an ABL object in an OpenEdge program is limited by the lifetime of the UserSession object with which it is associated.The following constructor establishes a connection (through a URL) to a Business Process Server:
PUBLIC UserSession( INPUT connection-parms AS CHARACTER )
-URL SBMServerDC://ip-address host-name:port-numberThe number of the port that the Business Process Server listens on. If no optional port-number is specified, the OpenEdge default value of 18793 is used.
When the Disconnect( ) method is called on a UserSession object, all of the objects created directly or indirectly from that UserSession object become invalid. A flag on the Disconnect ( ) method identifies whether the user session is deleted on the Business Process Server.
Note that executing DELETE OBJECT on a UserSession object causes the Disconnect( ) method to run, which will delete any local objects. It will have no effect on the active session in the Business Process Server.
© 2013 Progress Software Corporation and/or its subsidiaries or affiliates. |