TRIRIGA

 View Only
  • 1.  How to set a field to the current date with a workflow

    Posted Mon January 20, 2025 05:01 PM
    Pardon the newbie question, but I have a date field that I need to set to the current date in a workflow. How is that done?
     
     


  • 2.  RE: How to set a field to the current date with a workflow

    Posted Tue January 21, 2025 08:55 AM

    Take a look a the application builder guide, specifically around system formulas and you will find:

    CurrentTime
    • CurrentTime()
    • Returns the current time of the Application Server as the number of milliseconds since midnight, January 1, 1970 UTC.
    DateFromDateTime
    • DateFromDateTime(timeInMillis)
    • Truncates a date, date and time, or time field to the date and returns the result in milliseconds.
    • A time field always returns zero.

    You can use these formulas in your Create Record task or Modify Records in the mappings. So if you want the time component you can just use the CurrentTime() as the formula value. If you want to strip the time part of and just have the date, then pair it with the other formula (DateFromDateTime(CurrentTime())

    --Mark



    ------------------------------
    Mark Johnson
    Senior Architect
    Wipro
    Bentonville
    7025088528
    ------------------------------



  • 3.  RE: How to set a field to the current date with a workflow

    Posted Tue January 21, 2025 09:03 AM

    Update Task -> Edit Map

    There are other special constants.  Google "Application Building for the IBM TRIRIGA Application Platform" for more details 



    ------------------------------
    Todd Stewart
    ------------------------------