Chapter 4 Applications Applications that handle business processes are at the heart of the Netscape Application Server: Process Automation Edition (PAE) product. PAE provides several forms for managing applications. You can change an application's state, view its logs, and export and delete its data. This chapter discusses these topics:
Applications that handle business processes are at the heart of the Netscape Application Server: Process Automation Edition (PAE) product. PAE provides several forms for managing applications. You can change an application's state, view its logs, and export and delete its data.
About Applications
Stopping & Starting Applications
Closing Applications
Uninstalling Applications
Viewing the Application Logs
Exporting and Deleting Data
Figure 4.1    The Deployed Applications page
Started (On): End users and administrators can access the application to initiate and manage process instances and work items.
Stopped (Off): End users cannot initiate new process instances for the application and cannot execute actions on existing process instances.
Open: This is the initial stage after a designer has deployed the application.
Closed: The administrator has closed down the application. End users can complete existing process instances but cannot initiate any new process instances. The PAE administrator can reopen closed applications at any time.
Obsolete: The administrator has uninstalled a closed application, and may have removed the application's user data. End users can no longer work on process instances for this application. Only closed applications can be uninstalled. Once an application has been uninstalled, you cannot resurrect it.
Figure 4.2    Application administration actions
Retrieves the application's definition from the configuration directory.
Establishes a connection with the database.
The application has just been newly deployed.
The server through which an end user is accessing the application was unavailable and has now been restarted.
Go to Process Administrator's home page at http://yourServer/Administrator.apm.
Click the Applications tab. This displays the list of applications in the cluster.
For the application you want to stop, choose the Stop Application command from the drop-down list for that application.
Click Apply.
For the application you want to start, choose the Start Application command from the drop-down list for that application.
For the application you want to close, choose the Close Application command from the drop-down list for that application.
Leaves an application in the closed stage for a while.
Manually terminates any open process instances that do not complete within a certain period of time.
Exports the application's process instances (that is, the user data) and may choose to delete it from the database.
Uninstalls the application from the cluster.
For the application you want to uninstall, choose the Uninstall Application command from the drop-down list for that application.
This displays the Uninstall Application dialog box.
Check the radio button to leave the application's database table intact or to delete it, depending on your situation.
Click Uninstall Application to mark the application as obsolete. Figure 4.3    The Uninstall Application dialog box
Figure 4.3    The Uninstall Application dialog box
warning log (warning.html) -- shows warnings that affect the application.
error log (error.html) -- shows the errors that have occurred with the application.
For the application whose logs you want to view, choose the View Logs command from the drop-down list for that application.
Click View Log File.
If a dialog box prompts you to enter a user ID and password, enter the ones that you defined for your Administration Server. For example, admin/admin. When they are authenticated, the View Application Logs page is displayed.
From the View Application Logs page, choose the log you want to view from the drop-down list.
Indicate how many log records you want to view. The log file display starts at the end of the file, so indicating "12" would show the last 12 records in the file.
Click View Log to see the log file.
Click the Applications tab.
Click the Export and Delete Data button at the bottom of the page below the list of applications.
The following window appears:
Figure 4.4    The Export and Delete Data page
Select a specific application or "Any Applications" from the drop-down list.
Enter any search criteria.
You search for process instances based on one or more of the following criteria:
process instance IDs
time the process instance was created
time the process instance was completed or terminated
Check "Save export to local disk at path" to export the data.
Enter the absolute physical path to the folder in your local file system that you want to use for archiving. If you checked the "Save export..." checkbox, you must enter a path or you get an error when you try to perform the operation.
Check "Delete data" to delete the data. You will lose any data that you haven't exported previously or as part of this operation.
You should export all data before deleting it.
Click Submit to export (and also delete if you checked the delete box) all the application data that meets your criteria.
process_instance_applicationName_processInstanceID_year_month_day_hour_ minute_second
For example:
c:\tmp\process_instance_CreditHistory_10_1999_10_11_10_31_51.xml
Here, the archival file was written to the directory c:\tmp\, the application name is CreditHistory, the process instance ID is 10, and the archival was done on October 11, 1999 at 10:31 and 51 seconds.
<PROCESS_INSTANCE>
<INSTANCE_DATA>
This section contains data from the process_instance table.
</INSTANCE_DATA>
<HISTORY_EVENT_LIST>
<HISTORY_EVENT>
This section contains data from one history event in the history table. There may be more than one history event listed here.
</HISTORY_EVENT>
</HISTORY_EVENT_LIST>
<DATA_ELEMENT_LIST>
This section contains a list of all data elements and their corresponding values. This section also contains custom field data.
</DATA_ELEMENT_LIST>
</PROCESS_INSTANCE>