Get Current Date
Component definition
This component creates a data variable of the current date and time. The Get Current Date component retrieves the current date and time from the local computer and creates a Date/Time data variable you can use in your process.
Component icon
Description of component output paths
Unknown
The component output paths are described in the following table:
Property |
Description |
Unknown
|
Unknown
|
Unknown
|
Unknown
|
Description of component tabs and their properties
The properties on the Evalutation tab in the Get Current Date component are listed and described in the following table:
The properties on the Settings tab in the Get Current Date component are listed and described in the following table:
Connection information
Not applicable
Component settings
Unknown
Use cases
Some examples for the Number Range Rule component are as follows:
-
Coworker praise timestamp
A Get Current Date component adds a timestamp to a Web form submission.
-
Order validation
A Get Current Date component helps to make sure that a requested delivery date is valid.
Coworker praise timestamp
Scenario: A company has an online form where employees can praise their coworkers for their hard work. The form needs to have a timestamp on it when it is saved into a database.
Process: This process is created as a Forms (Web) Project type.
The following screen shot shows the process:
A Form Builder component contains the coworker praise form. The form contains three text fields: name of submitter, name of praised coworker, and comments. It also has a radio button the submitter can click to remain anonymous.
A Get Current Date component follows the Form Builder component, and outputs a date-and-time variable called Timestamp.
A custom-built database integration component follows the Get Current Date component. This component uploads all the process data into a database, including the timestamp. The date and the time stay with the database entry. Even if the file is moved or modified (changing the system timestamp), the date and time of the original entry are always available.
Other components in this example are as follows:
Form Builder
-
Custom component
This component must be created with the integration engine, and custom-configured to connect with your database.
For more information on the integration engine, see the Workflow Solution Administrator's Guide.
www.altiris.com/support/documentation.aspx
Order validation
Scenario: A company has a hardware order Web form. On the Web form, the requester can pick a delivery date. However, for the requested date to be valid, it must be later than the date of the request
The following screen shot shows the form:
Process: This process is created as a Forms (Web) Project type.
The following screen shot shows the process:
A Form Builder component contains the request form.
When the user clicks Submit, a Get Current Date component gets the current date and passes it into a Date Greater Than component. If the requested delivery date is on or before the current date, the user is sent back to the form.
If the requested delivery date is valid, a Send Email component sends an email to purchasing.
This method of date validation is applicable to a variety of date-specific situations, such as vacation requests, deadline and gate control, and scheduled maintenance notifications.
Other components in this example are as follows:
Form Builder
Date Greater Than
Send Email
Another example of using the Get Current Date component is included in the example that is provided for the Date Range Rule component.