Table of Contents

Search

  1. Preface
  2. Introduction
  3. Dashboard
  4. Resources
  5. Workflows
  6. Task Reference
  7. Services Overview
  8. Users
  9. Logs and Reports
  10. Encryption
  11. System
  12. Appendix
  13. Glossary Terms

Example

Example

The following steps illustrate how to include the Timestamp task in a Project, and then use the date variable to prefix files retrieved from a FTP server:
  1. Create a new Project or edit an existing Project.
  2. From within the Project Designer page, expand the Miscellaneous folder in the Component Library, and then drag the Timestamp task to the Project Outline.
  3. The Timestamp task opens.  You can optionally specify a Label, which would be shown in the Project outline. 
  1. By default, the Timestamp task will initialize the system variables of system.currentDate, system.currentTime and system.currentTimestamp, which will all be in
    ISO format
    . However, instead of using the system variables in ISO format, you can create your own variable(s) with a custom format by following the instructions below.
    Click the  
    Add
    button within the Timestamp task.
    Choose the
    Format
    option from the sub-menu.
    Specify the name of the variable to store the date, time or timestamp.
    Specify the pattern. The pattern rules are documented in the appendix.
  2. Click the
    Save
    button to save the Timestamp task.
  3. The TimeStamp task must be placed above any tasks that need to use the date/time/timestamp variables.  If needed, you can move the TimeStamp task up in the Project outline by right-clicking the Timestamp task, point to Edit and then click the
    Move Up
    menu item.
  4. After adding the Timestamp task, the date/time/timestamp variable(s) can be utilized in the remaining tasks (in this example FTP Get), within the Project.  If you performed step 4 above (to create your own custom formatted variable), then you can use that variable in a task. Otherwise, you will need to use one of the system variables (which are in
    ISO format
    ). In the example below, the system variable of system.currentDate is used to prefix the file name with the current date.
    Be sure to format the variable using the syntax of ${variablename}
  5. For this FTP example, the Project outline will appear similar to the image below.  Notice that the TimeStamp task (which was labeled as “Current Date and Time” is above the FTP task.

0 COMMENTS

We’d like to hear from you!