我有一份oozie工作如下:
<action name="action1">
<ssh xmlns="uri:oozie:ssh-action:0.1">
<host>${sshHost}</host>
<command>${scriptDir}/${scriptName}</command>
<capture-output/>
</ssh>
<ok to="scheduleOkAction" />
<error to="scheduleErrorAction" />
</action>
<action name="action2">
<email xmlns="uri:oozie:email-action:0.1">
<to>${emailToAddress}</to>
<subject>Workflow failed to run</subject>
<body>
[Workflow - ${wf:name()}] failed to run.
Stack Trace
${wf:actionData('action1')['ERROR']}
</body>
</email>
<ok to="kill" />
<error to="kill" />
</action>
<action name="action3">
<email xmlns="uri:oozie:email-action:0.1">
<to>${emailToAddress}</to>
<subject>Success</subject>
<body>
[Workflow - ${wf:name()}] - OK.
${wf:actionData('action1')['SUCCESS_CODE']}
</body>
</email>
<ok to="kill" />
<error to="kill" />
</action>
当&#39; action1&#39;没有异常,工作流程将我带到&#39; action3&#39;并向我发送了一封电子邮件 &#39; SUCCESS_CODE&#39; actionData。但是当&#39; action1&#39;抛出一个例外,工作流程将我带到&#39; action2&#39;并向我发送了一封电子邮件没有&#39; ERROR&#39; actionData。
在Oozie发生错误时,松散所有actionData是否有效?或者我错过了什么?