Workflow and ServiceDesk Community

 View Only

Get Current Date 

Jun 13, 2012 09:42 AM

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:

Property

Description

Output Variable Name

Lets you select a variable or enter the output variable name. This variable contains the current system date.

A variable array value can be selected when you drill into the array and select a value.

The properties on the Settings tab in the Get Current Date component are listed and described in the following table:

Property

Description

Component Class Name

The class name of this component. This property is not editable, but useful if you call Symantec support.

Description

The description of this component. This property lets you describe how the component is used. You can use it to provide any wanted documentation for this component.

This description is included in the model reports that are created when you click Plugins > Generate Business Model.

Location

The physical location of the top left point of this component on the workflow model.

Name

The name of this component. You can change the name.

If you changed the component name when you double-clicked it on the workflow model, the changed name appears here.

Override Background Color

This property lets you change the background color of this component.

To Do

This property lets you record what you still need to do with the component. Use this property to help you remember the configuration that you want to apply to this component.

The text that you enter for this property appears at the bottom of the component editor. If you enter text for this property, a checklist symbol appears on the component in the workflow model.

Is Enabled

This property lets you enable or disable the component. By default, components are enabled. When a component is disabled, it has no effect on the Project. Uncheck Is Enabled to disable the component.

  • Execution Outcome

    If a component with more than one outcome path is disabled, you must select which outcome path you want the component to take. Click the Execution Outcome drop-down list and select the outcome path for the workflow to follow.

  • Disabled Mapping

    If the component has output parameters, you must configure all output parameters with fixed data to pass on. This configuration can be performed in the Disabled Mapping option.

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.

Statistics
0 Favorited
1 Views
0 Files
0 Shares
0 Downloads

Tags and Keywords

Related Entries and Links

No Related Resource entered.