SPS Action: Document Type Lookup
This action is typically used in a process to convert a bar code value (for example, SYNE11E12) into the DocType name. The document type lookup action returns the In_DocTypeName from the In_DocTypeID value.
|
|
Synergize.ProcessServer.Actions.Core.dll |
v 1.0.0.15 SP38 |
|
Activity |
Type |
Description |
Bindable |
|---|---|---|---|
|
Name |
Sting |
Name of the action. |
False |
|
Description |
String |
Description of the action. Max 255 characters. |
False |
|
Enabled |
Boolean |
True or False |
False |
|
Activity |
Type |
Description |
Bindable |
|---|---|---|---|
|
Name |
Sting |
Name of the action. |
False |
|
Description |
String |
Description of the action. Max 255 characters. |
False |
|
Enabled |
Boolean |
True or False |
False |
|
DocumentTypeID |
String |
The Document Type ID to lookup |
True |
-
In Administrative Tools, launch the Synergize Process Designer.
-
In the Enterprise Overview panel, right-click the Synergize Processes node and choose Create Process from the context menu.
-
Select the new process titled Untitled.
-
In the Properties window, name the new process DocumentTypeLookup.
-
In the Toolbar, save the process.
-
Add the following actions to the canvas:
-
Trigger | Delayed Execution | (name) Delay10Sec
Action
Name
Delay10Sec
Enabled
True
Timeout Duration
00:00:10
Binding
none
-
File Processing | For Each File | (name) ForEachFile
Action
Name
ForEachFile
Enabled
True
Error Directory
Path\To\Your\Files\Error
Processed Directory
Path\To\Your\Files\Processed
Source Directory
Path\To\Your\Files
Working Directory
Path\To\Your\Files\Working
MinimumFileAge
00:00:15
OnFailureAction
Move
Recursive
Leave at False by default
SearchPattern
Leave at *.* by default
UseWorkingDirectory
True
-
Barcode | Read Barcode | (name) ReadBarcode
Action
Name
ReadBarcode
Enabled
True
Use Code 128
False
Use Code 39
True
Use Ean 13
False
Use Interleaved 2 of 5
False
Filename
{ForEachFile.CurrentFile.FullName}
ForceReadWithEngine
False
Mask
^\d{2}$ This will only find 2 digit barcodes, all others will be ignored
-
Text Processing | RegEx Parser | (name) regexParserAction
Action
Name
ParseBarcode
Enabled
True
Expression
^\d{2}$ This will only find 2 digit barcodes, all others will be ignored
Input
{ReadBarcode.Barcode}
-
Variables | Define Variable | (name) ConvertDocTypeToInt
Action
Name
ConvertDocTypeToInt
Enabled
True
Value
{ParseBarcode.Field["Field_0"]}
Action
Name
UpdateLocalDocument
Enabled
True
DocumentTypeID
{ConvertDocTypeToInt.Variable.ValueAsInteger}
-
Synergize | Document Type Lookup | (name) GetDocTypeName
Action
Name
GetDocTypeName
Document
{CodedSourceFile.Document}
Filename
Leave Blank
Field List
Bind Synergize Fields to the LookupTableName results
Action
Name
SaveDocument
Enabled
True
ACL
Default
Document
{CodedFileName.Document}
-
-
Save the process.
-
In the Enterprise Overview panel, right-click the Synergize Processes node and choose Process Overview from the context menu.
-
In the Process Status panel, click the Play button.
-
Monitor your results in the Activity Log panel to ensure that your Document Type Lookup action is logged.