Tested with latest nightly.
1) <fail on="COMPLETED" exit-status="EARLY COMPLETION"/> in Job XML for a <step> element.
This works fine.Step which exits with COMPLETED exit status sets the JOB exit status as EARLY COMPLETION
I tried with other possibilities given below, but these possibilities wont set the JOB exit status as expected.
<fail on="FAILED" exit-status="EARLY FAIL"/>
I have thrown an exception in a process execution,so the step fails with FAILED exit status. Step exit status get set as FAILED, but <fail> element didn't work.
<fail on="STOPPED" exit-status="EARLY STOP"/>
Used JobOperator.stop() to stop a process execution
The same case applies to all other transition elements: end,next,stop