GlobalSCAPE Knowledge Base

Executing DLL functions with the AWE module and EFT Server

Karla Marsh


  • EFT Server Enterprise version 6.2


You can use Advanced Workflow Engine (AWE) workflows to design scripts, batch files, macros, or any other code-intensive process using an easy drag-and-drop interface. AWE actions allow you to create custom, complex interactions within EFT Server. One such action is the Execute DLL Function action. The Execute DLL Function action executes a specified method in a dynamic-link library (DLL) and stores the return value of the method in an AWE variable. The Execute DLL Function action only accepts simple data types as parameters and can only return simple data types. It is a very versatile action if you have your own managed or unmanaged DLL whose function signature is known.

To use the Execute DLL Function action

  1. In EFT Administrator, connect to EFT Server and click the Server tab.
  2. In the left pane, click the Advanced Workflow node. The Advanced Workflow pane appears.
  3. In the right pane, click New. The Create a Workflow dialog box appears.
  4. In the What do you want to call this workflow box, specify a name for the workflow. When you add the workflow to Event Rules, the name you specify here appears in the Rule.
  5. (Optional) Provide a description of the workflow, then click OK. The AWE interface appears.
  6. Create a variable that you populate with the return value. Expand the Variables node, then drag the Create Variable action to the Steps pane. The Create Variable dialog box appears.
  7. In the Variable name box, specify the Variable Name and its Initial Value, then click OK. You can create your own variable or use the Expression Builder to specify an EFT Server variable.
  8. Expand the Advanced node and drag the Execute DLL Function action to the Steps pane. The Execute DLL Function dialog box appears.
  9. In the Dynamic-link library box, click the folder icon to specify the DLL file to use.
  10. Clicking the Go button will attempt to query available DLL types in the DLL you specified. Upon a successful query, all discovered types will be populated into the Type field, and update the Method Name and Method return value type, if applicable. Click the down arrow next to the Type, Method Name, and Method return value type box will display a list of values from which to select. If your DLL is a managed DLL, the Type box will allow you to specify the class that contains the available methods.
  11. In the Method Name box, specify the DLL function you want to call. If you select a class under the Type parameter, all discovered methods relating to that class will be populated into this field.
  12. In the Method return value type box, select the type of data your function will return. Options include: Boolean, Byte, Char, Decimal, Double, Int16, Int32, Int64, SByte, Single, String, UInt16, UInt32, UTint64, and Void.
  13. In the Variable to populate with return value box, select the variable that will receive the return value of the function being called.
  14. Click the Arguments tab and specify the data that will be passed to the function being called. Variables are allowed.
  15. Click OK to save the action. (Note: On the On Error tab, you can specify what to do in case the action encounters an error, such as stop, retry 3 times, send e-mail, etc.)
  16. Click Run to test your workflow.
  17. Your workflow can now be added to an Event Rule.

Refer to the following topics for more information:

Last Modified: 11 Years Ago
Last Modified By: GlobalSCAPE 5
Article not rated yet.
Article has been viewed 15K times.
Also In This Category