You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@oozie.apache.org by "Dénes Bodó (Jira)" <ji...@apache.org> on 2021/06/22 14:44:00 UTC

[jira] [Updated] (OOZIE-1975) Documentation issue in wf:lastErrorNode()

     [ https://issues.apache.org/jira/browse/OOZIE-1975?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dénes Bodó updated OOZIE-1975:
------------------------------
    Component/s: docs

> Documentation issue in wf:lastErrorNode()
> -----------------------------------------
>
>                 Key: OOZIE-1975
>                 URL: https://issues.apache.org/jira/browse/OOZIE-1975
>             Project: Oozie
>          Issue Type: Bug
>          Components: docs
>            Reporter: Shwetha GS
>            Priority: Major
>
> According to oozie doc http://oozie.apache.org/docs/4.0.1/WorkflowFunctionalSpec.html#a4.2.3_Workflow_EL_Functions,
> String wf:lastErrorNode()
> It returns the name of the last workflow action node that exit with an ERROR exit state, or an empty string if no action has exited with ERROR state in the current workflow job.
> But according to oozie code, 
> {code}
>     /**
>      * Return the name of the last action that ended in error.
>      *
>      * @return the name of the last action that ended in error, <code>null</code> if no action in the workflow job has
>      *         ended in error.
>      */
>     public static String wf_lastErrorNode() {
>         return getWorkflow().getWorkflowInstance().getVar(LAST_ACTION_IN_ERROR);
>     }
> {code}
> So, if there is no error, this EL returns null, but is documented as returning empty string



--
This message was sent by Atlassian Jira
(v8.3.4#803005)