Custom Hooks Tab of the Application Preferences Dialog Box

Use this tab to set processes that should run before a process runs or after the process completes.

Warning: When you make changes on this tab, you must exit Cobra for the changes to take effect. You must also stop and restart all Cobra Web Service instances, including those that are deployed in PM Compass.

Pre-process and post-process can be set for the following Cobra processes:

  • Advance Calendar
  • Calculate Progress
  • Calculate Forecast
  • Integration Wizard
  • Move Work Package
  • Reclass
  • Update Totals
Note: To know which fields to use to define custom processes for a process, refer to Customization of Processes.

Contents

Field Description
Pre-process custom application Use this field to run a process before a particular Cobra process runs or to modify a specific process using a custom application. Cobra can run the custom application before the data is saved in the temporary table and imported into the Cobra tables.

Enter the path of the custom application you want to run. You can also click to display the Locate Custom Application dialog box, where you can select the process you want to run.

Note: The path you select must be on the application server and not on the local machine.
Post-process custom application Use this field to run a custom application after a particular Cobra process runs. Cobra can run the custom application after the data is saved in the temporary table and before it is imported into the Cobra tables. The following is an example of a post-process custom application for Integration Wizard: actual costs is an allocation routine that allocates overhead costs back to specific control accounts or work packages.

Enter the path and file name of the custom application you want to run. You can also click to display the Locate Custom Application dialog box where you can select the process you want to run.

Note: The path you select must be on the application server and not on the local machine.
Pre-load custom application Use this field to run a process before running the integration. If there is a pre-load process, the integration pauses while the external application runs. After the external application finishes, the integration continues. This field applies when loading Project Data using the Integration Wizard.

Enter the path and file name of the pre-load custom application you want to run. You can also click to display the Locate Custom Application dialog box where you can select the process you want to run.

Note: The path you select must be on the application server and not on the local machine.
Pre-load returns a result Select this option to instruct Cobra to return a True value if the pre-load custom application completes successfully and then continue with the integration, or to return a False value if the pre-load custom application completes with an error and stop the integration.

If this option is not selected, the integration process will continue in all cases. By default, this option is cleared.

Pre-save custom application Use this field to specify a custom application to be run before the data is saved. This field applies when loading Project Data using the Integration Wizard.

Enter the path and file name of the pre-save custom application you want to run. You can also click to display the Locate Custom Application dialog box where you can select the process you want to run.

Note: The path you select must be on the application server and not on the local machine.
Pre-save returns a result Select this option to instruct Cobra to return a True value if the pre-save custom application completes successfully and the continue with the integration, or to return a False value if the pre-save custom application completes with an error and stop the integration.

If this option is not selected, the integration process will continue in all cases. By default, this option is cleared.

Post-save custom application Use this field to specify a custom application to be run after the data is saved.
Enter the path and file name of the post-save custom application you want to run. You can also click to display the Locate Custom Application dialog box where you can select the process you want to run.
Note: The path you select must be on the application server and not on the local machine.
Type Select the type of file you want to run. Select one of the following options from the drop-down list:
  • Script: This is a text file with a SQL query or list of commands in VFP.
  • Executable: An example is a compiled VB or C++ application.
  • Visual FoxPro Procedure: This is a compiled .FXP file.