Cobra Help

Custom Hooks

Use the Custom Hooks tab of the Application Preferences dialog box to set the process that should run before a particular process runs or after a process completes.

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

  • Advance Calendar
  • Calculate Forecast
  • Calculate Progress
  • Integration
  • Move Work Package
  • Reclass
  • Update Totals

To run a file, choose the appropriate type from the Type field on the Custom Hooks tab.

  • Script: A text file with a SQL query or list of commands in VFP
  • Executable: For example, a compiled VB or C++ application
  • Visual FoxPro Procedure: A compiled .FXP file

Note that these files reside on the application server, not on your local machine.

You can secure custom hooks for a specific role in EPM Security Administrator or PPM Administrator (File > Application Preferences > Custom Hooks). You can add, edit, delete, and run a custom hook if you have the necessary rights enabled. Otherwise, you will not be able to execute any of these processes—even if a custom hook was previously defined.

Using custom hooks in Cobra involves the following steps:

  • Creating the custom application using any of the application types
  • Setting the processes that should run before a process runs or after the process completes using the Custom Hooks tab of the Application Preferences dialog box

The table below provides a sample path and extension for each custom application type and which fields to specify or select on the Custom Hooks tab.

Custom Application Type Sample Path and Extension Notes
Script <Drive>:\<Path>\Test.txt In the Custom Application field, enter or locate the sample path and extension, and select Script in the Type field.
Executable <Drive>:\<Path>\Test.exe In the Custom Application field, enter or locate the sample path and extension, and select Executable in the Type field.
Visual FoxPro Procedure <Drive>:\<Path>\Test.fxp In the Custom Application field, enter or locate the sample path and extension, and select Visual FoxPro Procedure in the Type field.

Custom Hook Parameters

The custom hook parameters that should be passed are determined by the parameters supported in the custom hook tool.

Customization of Processes

Use the Custom Hooks tab of the Application Preferences dialog box to set up the custom applications that will run as part of the integration process.

Customization of Integration Process

The integration process provides hooks to allow custom applications to run before importing the schedule data into Cobra. This enables further validation of information, a reformat of the schedule data, or conversion of the schedule in a format that the standard integration supports.

Procedures

Use the procedures to manage custom hooks.


How to...

Set Up Custom Applications

Configure Application Settings


Learn more about...

Custom Hooks Tab of the Application Preferences Dialog Box


Parent Topic:

Tools