Home Forums Oozie How to Oozie Worflow Id?

This topic contains 2 replies, has 2 voices, and was last updated by  VG 4 months, 1 week ago.

  • Creator
    Topic
  • #53869

    VG
    Participant

    Hi,

    I need to capture oozie workflow id and store my workflow information in a table. How to get oozie Workflow id. Please advice?

    Regards,
    Venkat

Viewing 2 replies - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.

  • Author
    Replies
  • #54282

    VG
    Participant

    Hey Amudhan,

    Great. will wf:id() is the same we use in the Java. the same doesn’t working in oozie when I’m passing as parameter any clue?

    I’m passing as {wf:id()). Am doing wrong? Please advice.

    Regards,
    VG.

    Collapse
    #54245

    Amudhan K
    Participant

    Hello VG,
    You can write a java code by importing the oozie packages like
    import org.apache.oozie.client.OozieClient;
    import org.apache.oozie.client.WorkflowJob; and more

    and there by using the methods provided by oozie like
    getJobInfo, getJobId, list<filter>

    to get the required details and there by storing it into a table.

    Collapse
Viewing 2 replies - 1 through 2 (of 2 total)