Hitachi Vantara Pentaho Community Forums
Results 1 to 3 of 3

Thread: Does the 'User Defined Java Expression' have access to row data?

  1. #1

    Default Does the 'User Defined Java Expression' have access to row data?

    I tried:

    Code:
    priority.substring(1,1)
    priority.getString().substring(1,1)
    (priority is a field) but got denied ("unknown method getString()")

    Thanks
    Martin

  2. #2
    Join Date
    Jun 2012
    Posts
    5,534

    Default

    A field is made accessible as POJO in a UDJE step.
    If your field (priority) is a Kettle String, then methods of java.lang.String should work.
    So long, and thanks for all the fish.

  3. #3

    Default

    Thanks

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.