SPS Action: Increment Counter
The Increment Counter action increases or decreases the value of the bound Define Counter action by the configured increment. Use the Increment Counter action when you want your process to keep track of internal iterations of specified conditions such as the number of documents saved, number of errors, or total number of files to be processed. The process can then send a summary message which includes the data counts.
|
|
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 |
|
Input |
|
|
|
|---|---|---|---|
|
Counter |
String |
The counter to increment |
True |
|
Misc |
|
|
|
|---|---|---|---|
|
Increment |
Integer |
How much to increment 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 process titled Untitled.
-
In the Properties window, name the new process IncrementCounter.
-
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 Increment Counter action is logged.