| <?xml version="1.0" encoding="UTF-8"?> |
| <!DOCTYPE workflow PUBLIC "-//OpenSymphony Group//DTD OSWorkflow 2.8//EN" "http://www.opensymphony.com/osworkflow/workflow_2_8.dtd"> |
| <!-- |
| Licensed under the Apache License, Version 2.0 (the "License"); |
| you may not use this file except in compliance with the License. |
| You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, software |
| distributed under the License is distributed on an "AS IS" BASIS, |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| See the License for the specific language governing permissions and |
| limitations under the License. |
| --> |
| <workflow> |
| <initial-actions> |
| <action name="start" id="0"> |
| <results> |
| <unconditional-result old-status="n/a" status="CREATED" step="1"/> |
| </results> |
| </action> |
| </initial-actions> |
| <common-actions> |
| <action name="useless" id="100"> |
| <results> |
| <unconditional-result old-status="n/a" status="CREATED" step="1"/> |
| </results> |
| </action> |
| </common-actions> |
| <steps> |
| <step name="CREATED" id="1"> |
| <actions> |
| <action name="ok" id="1001"> |
| <results> |
| <result old-status="CREATED" status="SUCCESS" step="4"> |
| <conditions> |
| <condition type="beanshell"> |
| <arg name="script">transientVars.containsKey("SYNC")</arg> |
| </condition> |
| </conditions> |
| </result> |
| <unconditional-result old-status="CREATED" status="SUBMITTED" step="2"/> |
| </results> |
| </action> |
| <action name="ko" id="1002"> |
| <results> |
| <result old-status="CREATED" status="FAILURE" step="5"> |
| <conditions> |
| <condition type="beanshell"> |
| <arg name="script">transientVars.containsKey("SYNC")</arg> |
| </condition> |
| </conditions> |
| </result> |
| <unconditional-result old-status="CREATED" status="UNSUBMITTED" step="3"/> |
| </results> |
| </action> |
| </actions> |
| </step> |
| |
| <step name="SUBMITTED" id="2"> |
| <actions> |
| <action name="ok" id="2001"> |
| <results> |
| <unconditional-result old-status="SUBMITTED" status="SUCCESS" step="4"/> |
| </results> |
| </action> |
| <action name="ko" id="2002"> |
| <results> |
| <unconditional-result old-status="SUBMITTED" status="FAILURE" step="5"/> |
| </results> |
| </action> |
| </actions> |
| </step> |
| |
| <step name="UNSUBMITTED" id="3"> |
| <actions> |
| <common-action id="100"/> |
| </actions> |
| </step> |
| |
| <step name="SUCCESS" id="4"> |
| <actions> |
| <common-action id="100"/> |
| </actions> |
| </step> |
| |
| <step name="FAILURE" id="5"> |
| <actions> |
| <common-action id="100"/> |
| </actions> |
| </step> |
| |
| </steps> |
| |
| </workflow> |