Create your own User Defined Gates

Top  Previous  Next

Developing your new Gate

When creating a User Defined Gate you must do the following:
First create a class within a DLL
The class has 3 sub/functions which are referenced by Kontinuum
They are inherited from the ProcessGateTemplate class and can be overridden
If the RecursiveDirectionCheck is not overridden, when the Gate is available then the gate to the right becomes available also
If the DrawLocationAdmin function is not overridden then the gate will appear in the Design tree as the image <Images\<Images Set Directory>\NotLive\<MyClassName>.gif>
If the DrawLocationUser function is not overridden then the gate will:
Appear in the End User environment as the image <Images\<Images Set Directory>\NotLive\<MyClassName>.gif> when the gate is not available
<Images\<Images Set Directory>\Live\<MyClassName>.gif> when the gate is available
<Images\<Images Set Directory>\Live\<MyClassName>Done.gif> when the gate has been completed
It is in the DrawLocationUser function where the unique characteristics of this gate should be coded
Below is the syntax required for creating a task Gate in Visual Basic.NET
The Process Gate has the following format:
Inherits WebandFlo2005External.ProcessGateTemplate
Public class NewProcessGate determines what directions if any should be available once this part of the process has been completed
Public Sub RecursiveDirectionCheck(ByVal val_XCoordinate As Short, _
ByVal val_YCoordinate As Short, _
ByRef ref_Workflow As WebAndFlo2005Workflow.Workflow, _
ByVal val_fromDirection As String, _
ByVal val_LastForm As String)
End Sub
'Draw the item as it is seen by the Designers
Public Function DrawLocationAdmin(ByVal val_XCoordinate As Short, _
ByVal val_YCoordinate As Short, _
ByRef ref_process As Object, _
ByRef ref_SessionVariables As WebAndFlo2005Lib.SessionVariables) As String
End Function
'Draw the item as it is seen by the end Users
Public Function DrawLocationUser(ByVal val_XCoordinate As Short, _
ByVal val_YCoordinate As Short, _
ByRef ref_process As Object, _
ByRef ref_PageVariables As WebAndFlo2005Lib.PageVariables, _
ByVal val_fromDirection As String) As String
End Class

Integrating the new Gate into Kontinuum

Open your local Kontinuum website
Login with Username and Password given to you by your Kontinuum Administrator
Select Admin à Workflows from the top menu bar
Click once on the User Defined Gate Folder and select Add Gate from the Pop up menu
In the form that appears type in the bottom right frame enter the name of the dll and the Class you have created
Note:  This name must be exact and is case sensitive
Click once on the Submit button
Gates are loaded into memory when the Kontinuum Workflow suite starts
Copy your dll into the bin directory for the Kontinuum suite and this will cause Kontinuum to restart
Note: When doing this everyone using Kontinuum will be forced to login again and any forms they may have been filling out at the time will be lost


<%www.webandflo.com%>