Related Topics
Developing a Form in the .NET environment
There are two ways to develop Forms within Process Director. The first uses the Online Form Designer that's documented in the Implementers Reference. The other approach is to develop native ASP.NET forms, which is described here.
To develop Forms inside Visual Studio, use the fully functional Visual Studio project installed with the product named bpVS.zip. Refer to the sample files eform_*.aspx.
This section will provide you the basics of developing your Form in Visual Studio 2008. Developing in this environment requires the knowledge to program in ASP.NET. You'll be able to use ASP.NET controls as well as extended controls created by BP Logix.
When creating a Form for Process Director, you are actually creating a custom control (.ascx). You create your Form just as if you were creating in the ..ASPX page. Below you'll see the basic structure of the Form.
<%@ Control Language="C#" AutoEventWireup="true" Inherits="BPLogix.WorkflowDirector.SDK.bpFormASCX"%>
<script runat="server">
// Add any events here that will be called as part of the Form
// life-cycle
// See the Custom Scripting / Form Scripts section for more information
</script>
Include Files
This enables common functions to be called from other script files. To include a file in your Form use the following syntax:
<!--#include file="~/Custom/MyScripts/script.ascx"-->
The .ascx must exist on the server file system and isn't controlled by Process Director (via the Content List). A good location for an include file is the /custom/ folder in the Process Director web site installation directory.
Using a .DLL file with Your Scripts
This is an approach to call code from custom scripts. Developers can make a “normal” .NET .dll and place it into the \Program Files\BP Logix\Process Director\website\bin folder on the server. Then they can reference the classes in that .dll through any script code in the Process Director application. You can use the GAC, but it is easier to use the bin folder (assuming the code wouldn't be used “outside” of the Process Director environment). DLLs in this folder are accessible only to the Process Director application.
In your module placing the public classes into a namespace, such as:
namespace companyname.custom
{
public class MyClass()
{
// … your methods, properties, etc
public static void MyFunc()
{
}
}
}
Then inside a form script call this function using:
companyname.custom.MyClass.MyFunc();
Documentation Feedback and Questions
If you notice some way that this document can be improved, we're happy to hear your suggestions. Similarly, if you can't find an answer you're looking for, ask it via feedback. Simply click on the button below to provide us with your feedback or ask a question. Please remember, though, that not every issue can be addressed through documentation. So, if you have a specific technical issue with Process Director, please open a support ticket.