This method is used to start the creation of an instant workflow.
Namespace:
OmniPageCSDK.IproPlus
Assembly:
OmniPageCSDK.IproPlus (in OmniPageCSDK.IproPlus.dll) Version: 1.0.0.0
Syntaxpublic void CreateWF(
int WFType,
string InLinkTypeIID,
string OutLinkTypeIID
)
Public Sub CreateWF (
WFType As Integer,
InLinkTypeIID As String,
OutLinkTypeIID As String
)
public:
void CreateWF(
[InAttribute] int WFType,
[InAttribute] String^ InLinkTypeIID,
[InAttribute] String^ OutLinkTypeIID
)
Parameters
- WFType
- Type: SystemInt32
- InLinkTypeIID
- Type: SystemString
- OutLinkTypeIID
- Type: SystemString
Remarks
An 'instant' workflow is a runtime created workflow that is done programmatically, and not created manually in the Assistant. The WFHandler can to handle only
one workflow at a time. As a result, if for any reason the WFHandler has a current workflow (for example loaded from a file), it will be discarded.
All workflow-related controls will reflect the changes made for the created workflow.
The WFType parameter must be either:
-
a member of the IWFTYPE enumeration or
-
a long value composed of the CWFF_* flags plus the IWFT_WFS_DIRECT value.
In the second case, if you create a workflow with inconsistent steps, the WFHandler may not function correctly.For example, the following workflow will only load and recognize the image:
mWFHandler.CreateWF(Convert.ToInt32(WFStepFlag.IWFT_WFS_DIRECT|WFStepFlag.CWFF_LOADIMG|WFStepFlag.CWFF_RECOGNIZE), null,null);
The InLinkType and OutLinkType parameters must be the string representation of the link IIDs. Input and output links can be enumerated by the Links collection.
See Also