Hitachi Vantara Pentaho Community Forums
Results 1 to 2 of 2

Thread: Need assistance with Job JS evaluation

  1. #1
    Join Date
    Jun 2006
    Posts
    282

    Default Need assistance with Job JS evaluation

    Hi guys..
    I'm trying, use a JS evaluation to determine which trans to branch off to. Basically, I want to say if today is Saturday run trans A else run trans B.
    I'm not well versed in JS but this should be straight forward.

    // If today is Saturday we need to run the Flash Report transformation.
    var d = new Date();
    // The week starts from Sunday which is 0. Monday=1 ~ Saturday=6
    d.getDay() == 6

    Shouldn't this branch to A if true?
    "If you want to increase your success rate, double your failure rate."
    Thomas Watson, Sr (former president of IBM)

  2. #2

    Smile

    Yes

    Samatar
    Samatar

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Privacy Policy | Legal Notices | Safe Harbor Privacy Policy

Copyright © 2005 - 2019 Hitachi Vantara Corporation. All Rights Reserved.