SPS Action: Define Counter
Use the Define Counter action to specify a dynamic variable to be used to count iterative activity (for example, to process one or more items in a series). In addition to specifying the start and end values for your counter, you can also indicate whether the current value should be reset for each instance.
|
|
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 |
|
Misc |
|
|
|
|---|---|---|---|
|
In |
Integer |
The starting value for the counter. |
True |
|
ResetOnProcessStart |
Boolean |
Should the current value be reset for each instance. |
False |
|
To |
Integer |
The ending value for the counter, -1 to not wrap the value . |
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 untitled process.
-
In the Properties window, name the new process DefineCounter.
-
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
-
Synergize Actions | Synergize Connection | (name) ConnectToSynergize
Action
Name
ConnectToSynergize
Enabled
True
ConnectionParameters
Will display the connection details you have configured
DocumentView
Select the Document View if enabled
Timeout
00:01:30
WebServiceUrl
The WebService URL for Synergize is automatically displayed here
-
Variables | Define Counter | (name) DefineCounter
Action
Name
DefineCounter
Enabled
True
In
0
ResetOnProcessStart
True
To
-1
-
Variables | Increment Counter | (name) IncrementCounterToZero
Action
Name
IncrementCounterToZero
Counter
{DefineDocumentCounter.Counter}
Increment
1
-
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
Leave at default value of 00:00:15
OnFailureAction
Move
Recursive
Leave at False by default
SearchPattern
Leave at *.* by default
UseWorkingDirectory
True
-
Variables | Increment Counter | (name) IncrementCounter
Action
Name
IncrementCounter
Counter
{DefineDocumentCounter.Counter}
Increment
1
-
-
Save the process.
-
Before running this For Each File Action Process, you must configure the synergizeConnectionAction | ConnectionParameters to your specific Synergize server.
-
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 Add Document To Group action is logged.