SPS Action: Today Date Difference
The Today Date Difference Action allows the process to calculate the date at this moment, or another date using now as a base.
The DaysToAdd property allows the process to calculate a change in date either in the past or into the future.
Setting the DaysToAdd property to '-5' will change the result date to 5 days ago, a positive integer will calculate into the future, a value of '0' will result in todays date.
|
|
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 |
|
Date |
|
|
|
|---|---|---|---|
|
DaysToAdd |
Integer |
Number of days to differ by |
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 TodayDateDifference.
-
In the Toolbar, save the process.
-
Add the following actions to the canvas:
-
Trigger | Delayed Execution | (name) Delay10Sec
-
Time Actions | Today Date Difference | (name) Date5DaysAgo
-
Debugging | Write to Debug | (name) DebugDate
-
|
Action |
|
|---|---|
|
Name |
Delay10Sec |
|
Enabled |
True |
|
Timeout Duration |
00:00:10 |
|
Binding |
none |
|
Action |
|
|---|---|
|
Name |
Date5DaysAgo |
|
Enabled |
True |
|
DaysToAdd |
-5 |
|
Action |
|
|---|---|
|
Name |
DebugTime |
|
Enabled |
True |
|
Debug Text |
Date: {Date5DaysAgo.ResultDate} |
1. 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 Today Date Difference action is logged.