The Invoke Custom Method action allows users to call a custom DLL. For example, you can use this action to modify your PM Compass database if it doesn't suit your company's needs. You can also use this action as a method of interacting with another outside application or system.
For more information, see Invoke Custom Method Overview.
Unzip the DLL to [Install Directory]/Alerts folder (create Alerts folder if does not exist).
To create an Invoke Custom Method action for a workflow:
Display the Alerts form. How?
Select an Area type from the drop-down list. This field dictates the area of PM Compass to be used in the alert’s conditions and actions.
In the Alerts grid, select the workflow row (event) to which you want to add the action.
In the Actions grid, click Insert and select Invoke Custom Method. PM Compass displays the Invoke Custom Method Configuration dialog box.
In the Assembly field, select the DLL for the custom method that is being invoked.
Select the Class Name.
Select the Method (parameters will auto populate after method selected).
The 2 methods are Add and Subtract and have a return value. There are no database changes happening in them, so when run from an alert, there would be no noticeable change. PM Compass will pull all public methods found in your selected class. The arguments to the methods must be simple types (string, int, decimal, and so on).
In the Value
column, input the value of the argument or parameter. Click
to display the SQL
Expression Builder where you can create an SQL statement that
will be fed to the alert engine at run time. This works like all other
places that use the SQL Expression dialog.
To test the method, use the Test Method button and provide hard coded values to the dialog to run the test. If the method returns a result, that result will be displayed. The alert engine ignores all results, but the Test Custom Method dialog box displays them.
Complete the fields in the Alerts grid.
Click Save.
Create an Invoke Web Service action for a workflow
Create a stored procedure action for a workflow