Description
Currently, outputs in Falcon process is optional which is fine.
<xs:element type="outputs" name="outputs" minOccurs="0">
<xs:annotation>
<xs:documentation>Defines outputs of the workflow
</xs:documentation>
</xs:annotation>
</xs:element>
but the contents of this should have atleast one event:
<xs:complexType name="outputs">
<xs:sequence>
<xs:element type="output" name="input" maxOccurs="unbounded" minOccurs="0">
</xs:element>
</xs:sequence>
</xs:complexType>
Otherwise, oozie throws exception:
2013-12-23 14:34:44,809 ERROR CoordSubmitXCommand:536 - USER[-] GROUP[-] TOKEN[-] APP[-] JOB[0421329-131109200338010-oozie-oozi-B] ACTION[-] XException,
org.apache.oozie.command.CommandException: E0701: XML schema error, cvc-complex-type.2.4.b: The content of element 'output-events' is not complete. One of '
' is expected.
at org.apache.oozie.command.coord.CoordSubmitXCommand.submit(CoordSubmitXCommand.java:282)
at org.apache.oozie.command.SubmitTransitionXCommand.execute(SubmitTransitionXCommand.java:81)
at org.apache.oozie.command.SubmitTransitionXCommand.execute(SubmitTransitionXCommand.java:29)
at org.apache.oozie.command.XCommand.call(XCommand.java:277)
at org.apache.oozie.service.CallableQueueService$CallableWrapper.run(CallableQueueService.java:175)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)