SPS Action: Define String Variable
The Define String Variable action allows a process to set text data into a container for later use.
|
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 |
Value |
Any |
The value to set |
True |

-
In Administrative Tools, launch the Synergize Process Designer.
-
In the Enterprise Overview panel, right-click Synergize Processes and choose Create Process from the context menu.
-
Select the new Untitled process.
-
In the Properties window, name the new process DefineStringVariable.
-
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) ReadDocTypeBC
Action
Name
ReadDocTypeBC
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) ParseDocTypeBC
Action
Name
ParseDocTypeBC
Enabled
True
Expression
^\d{2}$ This will only find 2 digit barcodes, all others will be ignored
Input
{ReadDocTypeBC.Barcode}
-
Variables | Define String Variable | (name) DefineDocTypeBC
Action
Name
DefineDocTypeBC
Enabled
True
Value
{ParseBarcode.Field["Field_0"]}
-
-
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 Define Variable action is logged.