An object dataslot contains a serializable Java object of a class available on the BP Server server. You can use a project-specific class file (JAR) or common JAR files which are available on publishing a Common Resource project. The class object is instantiated when a BP Server application instance is created or when a Web application is accessed..
You can configure the properties of an Object dataslot in the respective sections (same sections as that for CHARACTER dataslot) of the Dataslots tab. For information on CHARACTER dataslot properties, see For a CHARACTER dataslot. The only difference is in the Initial Value section, which is described below.
You can use the Initial Value section to specify the initial value of the dataslot.
1. In the Java Class Name box, enter a unique name for the serializable Java object. Specify the Class Name (including the package name).
Classes, which are project-specific, are stored in <project_name>\lib folder (for BPM processes) or in <project_name>\WEB_INF\lib folder (for Web applications).
Classes, which are available on the BP Server server after you publish a Common Resource project, are stored in OEBPS_Home\ebmsapps\common\classes folder (for a BPM process) or in WebApp_Home\WEB-INF\classes folder (for Web application) wherein the WebApp_Home is application-server-specific and is the value of the oebps.webappdir property in OEBPS_Home\conf\oebps.conf file.
2. Use the Constructor Parameters section to define the parameters of the class constructor, which is invoked when the process instance is created. The object variables are initialized by invoking the proper constructor with the appropriate parameter values.
a. Define the parameters by clicking Add, to open the Add dialog box.
b. Specify the Java class name in the Type box and enter the value of the parameter.
You can use Progress Developer Studio for OpenEdge to specify the methods for this class object in the Before Activation and When Completed tabs of the Advanced tab in workstep properties. For more information regarding using these tabs, see Progress Developer Studio for OpenEdge User's Guide.
3. Click OK to add the constructor parameter in the Constructor Parameters section.