【发布时间】:2016-04-09 15:37:13
【问题描述】:
是否可以覆盖子工作流中的全局属性值?
在 main/workflow.xml 中
<workflow-app name="test-wf" xmlns="uri:oozie:workflow:0.4">
<global>
<configuration>
<property>
<name>global-prop</name>
<value>global-val</value>
</property>
</configuration>
<global>
<start to="start" />
<action name="start">
<sub-workflow>
<app-path>${wf:appPath()}/start</app-path>
....
...
<decision name="wf-decision">
<switch>
<case to="wf-A">${global-prop}</case>
<!-- can the value of global-prop be updated in main/start/workflow.xml, ie start subworkflow -->
<default to="end" />
</switch>
</decision>
当工作流到达决策节点时,它的路径取决于全局概率。我希望 global-prop 值取决于启动子工作流的结果。
【问题讨论】:
标签: workflow oozie oozie-coordinator