Search code examples
workflowoozie

Case conversion from oozie workflow


I have an oozie workflow where, the input path has been stated as:

    <property>
      <name>inputDir</name>
        <value>dir.db/test_${personName}</value>
    </property>

The personName comes with upper case. Is there any way I can change it to lower case from this statement (inside the oozie workflow)?

Any suggestions please?


Solution

  • You can't do that out of the box.

    Oozie supports basic JSP Expression Language (EL), and defines some custom methods, but that's all -- it does not ship with the JSTL utility methods such as fn:toLowerCase()

    But you can...

    • define your own EL methods, using custom Java code
    • declare these methods in the Oozie server configuration
    • call these methods in your Workflow

    You will find a tutorial about custom EL methods in that Cloudera blog post:
       How-to: Write an EL Function in Apache Oozie