Shwetha G S created OOZIE-1975:
----------------------------------
Summary: Documentation issue in wf:lastErrorNode()
Key: OOZIE-1975
URL: https://issues.apache.org/jira/browse/OOZIE-1975
Project: Oozie
Issue Type: Bug
Reporter: Shwetha G S
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
(v6.2#6252)