Permalink
Switch branches/tags
killbill-0.20.0 killbill-0.19.19 killbill-0.19.18 killbill-0.19.17 killbill-0.19.16 killbill-0.19.15 killbill-0.19.14 killbill-0.19.13 killbill-0.19.12 killbill-0.19.11 killbill-0.19.10 killbill-0.19.9 killbill-0.19.8 killbill-0.19.7 killbill-0.19.6 killbill-0.19.5 killbill-0.19.4 killbill-0.19.3 killbill-0.19.2 killbill-0.19.1 killbill-0.19.0 killbill-0.18.21 killbill-0.18.20 killbill-0.18.19 killbill-0.18.18 killbill-0.18.17 killbill-0.18.16 killbill-0.18.15 killbill-0.18.14 killbill-0.18.13 killbill-0.18.12 killbill-0.18.11 killbill-0.18.10 killbill-0.18.9 killbill-0.18.8 killbill-0.18.7 killbill-0.18.6 killbill-0.18.5 killbill-0.18.4 killbill-0.18.3 killbill-0.18.2 killbill-0.18.1 killbill-0.18.0 killbill-0.17.8 killbill-0.17.7 killbill-0.17.6 killbill-0.17.5 killbill-0.17.4 killbill-0.17.3 killbill-0.17.2.4 killbill-0.17.2.3 killbill-0.17.2.2 killbill-0.17.2.1 killbill-0.17.2 killbill-0.17.1 killbill-0.17.0 killbill-0.16.12 killbill-0.16.11 killbill-0.16.10 killbill-0.16.9 killbill-0.16.8 killbill-0.16.7 killbill-0.16.6 killbill-0.16.5 killbill-0.16.4 killbill-0.16.3 killbill-0.16.2 killbill-0.16.1 killbill-0.16.0 killbill-0.15.10 killbill-0.15.9 killbill-0.15.8 killbill-0.15.7 killbill-0.15.6 killbill-0.15.5 killbill-0.15.4 killbill-0.15.3 killbill-0.15.2 killbill-0.15.1 killbill-0.15.0 killbill-0.14.1 killbill-0.14.0 killbill-0.13.7 killbill-0.13.6 killbill-0.13.5 killbill-0.13.4 killbill-0.13.3 killbill-0.13.2 killbill-0.13.1 killbill-0.12.1 killbill-0.12.0 killbill-0.11.13 killbill-0.11.12 killbill-0.11.11 killbill-0.11.10 killbill-0.11.9 killbill-0.11.8 killbill-0.11.7 killbill-0.11.6 killbill-0.11.5
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
499 lines (490 sloc) 21.8 KB
<?xml version="1.0" encoding="UTF-8"?>
<!--
~ Copyright 2014 Groupon, Inc
~
~ Groupon licenses this file to you 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.
-->
<stateMachineConfig xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="StateMachineConfig.xsd">
<stateMachines>
<stateMachine name="BIG_BANG">
<states>
<state name="BIG_BANG_INIT"/>
</states>
<transitions>
<transition>
<initialState>BIG_BANG_INIT</initialState>
<operation>OP_DUMMY</operation>
<operationResult>SUCCESS</operationResult>
<finalState>BIG_BANG_INIT</finalState>
</transition>
</transitions>
<operations>
<operation name="OP_DUMMY"/>
</operations>
</stateMachine>
<stateMachine name="AUTHORIZE">
<states>
<state name="AUTH_INIT"/>
<state name="AUTH_PENDING"/>
<state name="AUTH_SUCCESS"/>
<state name="AUTH_FAILED"/>
<state name="AUTH_ERRORED"/>
</states>
<transitions>
<transition>
<initialState>AUTH_INIT</initialState>
<operation>OP_AUTHORIZE</operation>
<operationResult>SUCCESS</operationResult>
<finalState>AUTH_SUCCESS</finalState>
</transition>
<transition>
<initialState>AUTH_INIT</initialState>
<operation>OP_AUTHORIZE</operation>
<operationResult>FAILURE</operationResult>
<finalState>AUTH_FAILED</finalState>
</transition>
<transition>
<initialState>AUTH_INIT</initialState>
<operation>OP_AUTHORIZE</operation>
<operationResult>PENDING</operationResult>
<finalState>AUTH_PENDING</finalState>
</transition>
<transition>
<initialState>AUTH_PENDING</initialState>
<operation>OP_AUTHORIZE</operation>
<operationResult>SUCCESS</operationResult>
<finalState>AUTH_SUCCESS</finalState>
</transition>
<transition>
<initialState>AUTH_PENDING</initialState>
<operation>OP_AUTHORIZE</operation>
<operationResult>FAILURE</operationResult>
<finalState>AUTH_FAILED</finalState>
</transition>
<transition>
<initialState>AUTH_PENDING</initialState>
<operation>OP_AUTHORIZE</operation>
<operationResult>EXCEPTION</operationResult>
<finalState>AUTH_ERRORED</finalState>
</transition>
<transition>
<initialState>AUTH_INIT</initialState>
<operation>OP_AUTHORIZE</operation>
<operationResult>EXCEPTION</operationResult>
<finalState>AUTH_ERRORED</finalState>
</transition>
</transitions>
<operations>
<operation name="OP_AUTHORIZE"/>
</operations>
</stateMachine>
<stateMachine name="CAPTURE">
<states>
<state name="CAPTURE_INIT"/>
<state name="CAPTURE_PENDING"/>
<state name="CAPTURE_SUCCESS"/>
<state name="CAPTURE_FAILED"/>
<state name="CAPTURE_ERRORED"/>
</states>
<transitions>
<transition>
<initialState>CAPTURE_INIT</initialState>
<operation>OP_CAPTURE</operation>
<operationResult>SUCCESS</operationResult>
<finalState>CAPTURE_SUCCESS</finalState>
</transition>
<transition>
<initialState>CAPTURE_INIT</initialState>
<operation>OP_CAPTURE</operation>
<operationResult>FAILURE</operationResult>
<finalState>CAPTURE_FAILED</finalState>
</transition>
<transition>
<initialState>CAPTURE_INIT</initialState>
<operation>OP_CAPTURE</operation>
<operationResult>PENDING</operationResult>
<finalState>CAPTURE_PENDING</finalState>
</transition>
<transition>
<initialState>CAPTURE_PENDING</initialState>
<operation>OP_CAPTURE</operation>
<operationResult>SUCCESS</operationResult>
<finalState>CAPTURE_SUCCESS</finalState>
</transition>
<transition>
<initialState>CAPTURE_PENDING</initialState>
<operation>OP_CAPTURE</operation>
<operationResult>FAILURE</operationResult>
<finalState>CAPTURE_FAILED</finalState>
</transition>
<transition>
<initialState>CAPTURE_PENDING</initialState>
<operation>OP_CAPTURE</operation>
<operationResult>EXCEPTION</operationResult>
<finalState>CAPTURE_ERRORED</finalState>
</transition>
<transition>
<initialState>CAPTURE_INIT</initialState>
<operation>OP_CAPTURE</operation>
<operationResult>EXCEPTION</operationResult>
<finalState>CAPTURE_ERRORED</finalState>
</transition>
</transitions>
<operations>
<operation name="OP_CAPTURE"/>
</operations>
</stateMachine>
<stateMachine name="PURCHASE">
<states>
<state name="PURCHASE_INIT"/>
<state name="PURCHASE_PENDING"/>
<state name="PURCHASE_SUCCESS"/>
<state name="PURCHASE_FAILED"/>
<state name="PURCHASE_ERRORED"/>
</states>
<transitions>
<transition>
<initialState>PURCHASE_INIT</initialState>
<operation>OP_PURCHASE</operation>
<operationResult>SUCCESS</operationResult>
<finalState>PURCHASE_SUCCESS</finalState>
</transition>
<transition>
<initialState>PURCHASE_INIT</initialState>
<operation>OP_PURCHASE</operation>
<operationResult>FAILURE</operationResult>
<finalState>PURCHASE_FAILED</finalState>
</transition>
<transition>
<initialState>PURCHASE_INIT</initialState>
<operation>OP_PURCHASE</operation>
<operationResult>PENDING</operationResult>
<finalState>PURCHASE_PENDING</finalState>
</transition>
<transition>
<initialState>PURCHASE_PENDING</initialState>
<operation>OP_PURCHASE</operation>
<operationResult>SUCCESS</operationResult>
<finalState>PURCHASE_SUCCESS</finalState>
</transition>
<transition>
<initialState>PURCHASE_PENDING</initialState>
<operation>OP_PURCHASE</operation>
<operationResult>FAILURE</operationResult>
<finalState>PURCHASE_FAILED</finalState>
</transition>
<transition>
<initialState>PURCHASE_PENDING</initialState>
<operation>OP_PURCHASE</operation>
<operationResult>EXCEPTION</operationResult>
<finalState>PURCHASE_ERRORED</finalState>
</transition>
<transition>
<initialState>PURCHASE_INIT</initialState>
<operation>OP_PURCHASE</operation>
<operationResult>EXCEPTION</operationResult>
<finalState>PURCHASE_ERRORED</finalState>
</transition>
</transitions>
<operations>
<operation name="OP_PURCHASE"/>
</operations>
</stateMachine>
<stateMachine name="REFUND">
<states>
<state name="REFUND_INIT"/>
<state name="REFUND_PENDING"/>
<state name="REFUND_SUCCESS"/>
<state name="REFUND_FAILED"/>
<state name="REFUND_ERRORED"/>
</states>
<transitions>
<transition>
<initialState>REFUND_INIT</initialState>
<operation>OP_REFUND</operation>
<operationResult>SUCCESS</operationResult>
<finalState>REFUND_SUCCESS</finalState>
</transition>
<transition>
<initialState>REFUND_INIT</initialState>
<operation>OP_REFUND</operation>
<operationResult>FAILURE</operationResult>
<finalState>REFUND_FAILED</finalState>
</transition>
<transition>
<initialState>REFUND_INIT</initialState>
<operation>OP_REFUND</operation>
<operationResult>PENDING</operationResult>
<finalState>REFUND_PENDING</finalState>
</transition>
<transition>
<initialState>REFUND_PENDING</initialState>
<operation>OP_REFUND</operation>
<operationResult>SUCCESS</operationResult>
<finalState>REFUND_SUCCESS</finalState>
</transition>
<transition>
<initialState>REFUND_PENDING</initialState>
<operation>OP_REFUND</operation>
<operationResult>FAILURE</operationResult>
<finalState>REFUND_FAILED</finalState>
</transition>
<transition>
<initialState>REFUND_PENDING</initialState>
<operation>OP_REFUND</operation>
<operationResult>EXCEPTION</operationResult>
<finalState>REFUND_ERRORED</finalState>
</transition>
<transition>
<initialState>REFUND_INIT</initialState>
<operation>OP_REFUND</operation>
<operationResult>EXCEPTION</operationResult>
<finalState>REFUND_ERRORED</finalState>
</transition>
</transitions>
<operations>
<operation name="OP_REFUND"/>
</operations>
</stateMachine>
<stateMachine name="CREDIT">
<states>
<state name="CREDIT_INIT"/>
<state name="CREDIT_PENDING"/>
<state name="CREDIT_SUCCESS"/>
<state name="CREDIT_FAILED"/>
<state name="CREDIT_ERRORED"/>
</states>
<transitions>
<transition>
<initialState>CREDIT_INIT</initialState>
<operation>OP_CREDIT</operation>
<operationResult>SUCCESS</operationResult>
<finalState>CREDIT_SUCCESS</finalState>
</transition>
<transition>
<initialState>CREDIT_INIT</initialState>
<operation>OP_CREDIT</operation>
<operationResult>FAILURE</operationResult>
<finalState>CREDIT_FAILED</finalState>
</transition>
<transition>
<initialState>CREDIT_INIT</initialState>
<operation>OP_CREDIT</operation>
<operationResult>PENDING</operationResult>
<finalState>CREDIT_PENDING</finalState>
</transition>
<transition>
<initialState>CREDIT_PENDING</initialState>
<operation>OP_CREDIT</operation>
<operationResult>SUCCESS</operationResult>
<finalState>CREDIT_SUCCESS</finalState>
</transition>
<transition>
<initialState>CREDIT_PENDING</initialState>
<operation>OP_CREDIT</operation>
<operationResult>FAILURE</operationResult>
<finalState>CREDIT_FAILED</finalState>
</transition>
<transition>
<initialState>CREDIT_PENDING</initialState>
<operation>OP_CREDIT</operation>
<operationResult>EXCEPTION</operationResult>
<finalState>CREDIT_ERRORED</finalState>
</transition>
<transition>
<initialState>CREDIT_INIT</initialState>
<operation>OP_CREDIT</operation>
<operationResult>EXCEPTION</operationResult>
<finalState>CREDIT_ERRORED</finalState>
</transition>
</transitions>
<operations>
<operation name="OP_CREDIT"/>
</operations>
</stateMachine>
<stateMachine name="VOID">
<states>
<state name="VOID_INIT"/>
<state name="VOID_PENDING"/>
<state name="VOID_SUCCESS"/>
<state name="VOID_FAILED"/>
<state name="VOID_ERRORED"/>
</states>
<transitions>
<transition>
<initialState>VOID_INIT</initialState>
<operation>OP_VOID</operation>
<operationResult>SUCCESS</operationResult>
<finalState>VOID_SUCCESS</finalState>
</transition>
<transition>
<initialState>VOID_INIT</initialState>
<operation>OP_VOID</operation>
<operationResult>FAILURE</operationResult>
<finalState>VOID_FAILED</finalState>
</transition>
<transition>
<initialState>VOID_INIT</initialState>
<operation>OP_VOID</operation>
<operationResult>PENDING</operationResult>
<finalState>VOID_PENDING</finalState>
</transition>
<transition>
<initialState>VOID_PENDING</initialState>
<operation>OP_VOID</operation>
<operationResult>SUCCESS</operationResult>
<finalState>VOID_SUCCESS</finalState>
</transition>
<transition>
<initialState>VOID_PENDING</initialState>
<operation>OP_VOID</operation>
<operationResult>FAILURE</operationResult>
<finalState>VOID_FAILED</finalState>
</transition>
<transition>
<initialState>VOID_PENDING</initialState>
<operation>OP_VOID</operation>
<operationResult>EXCEPTION</operationResult>
<finalState>VOID_ERRORED</finalState>
</transition>
<transition>
<initialState>VOID_INIT</initialState>
<operation>OP_VOID</operation>
<operationResult>EXCEPTION</operationResult>
<finalState>VOID_ERRORED</finalState>
</transition>
</transitions>
<operations>
<operation name="OP_VOID"/>
</operations>
</stateMachine>
<stateMachine name="CHARGEBACK">
<states>
<state name="CHARGEBACK_INIT"/>
<state name="CHARGEBACK_SUCCESS"/>
<state name="CHARGEBACK_FAILED"/>
<state name="CHARGEBACK_ERRORED"/>
</states>
<transitions>
<transition>
<initialState>CHARGEBACK_INIT</initialState>
<operation>OP_CHARGEBACK</operation>
<operationResult>SUCCESS</operationResult>
<finalState>CHARGEBACK_SUCCESS</finalState>
</transition>
<transition>
<initialState>CHARGEBACK_INIT</initialState>
<operation>OP_CHARGEBACK</operation>
<operationResult>FAILURE</operationResult>
<finalState>CHARGEBACK_FAILED</finalState>
</transition>
<transition>
<initialState>CHARGEBACK_INIT</initialState>
<operation>OP_CHARGEBACK</operation>
<operationResult>EXCEPTION</operationResult>
<finalState>CHARGEBACK_ERRORED</finalState>
</transition>
</transitions>
<operations>
<operation name="OP_CHARGEBACK"/>
</operations>
</stateMachine>
</stateMachines>
<linkStateMachines>
<linkStateMachine>
<initialStateMachine>BIG_BANG</initialStateMachine>
<initialState>BIG_BANG_INIT</initialState>
<finalStateMachine>AUTHORIZE</finalStateMachine>
<finalState>AUTH_INIT</finalState>
</linkStateMachine>
<linkStateMachine>
<initialStateMachine>BIG_BANG</initialStateMachine>
<initialState>BIG_BANG_INIT</initialState>
<finalStateMachine>PURCHASE</finalStateMachine>
<finalState>PURCHASE_INIT</finalState>
</linkStateMachine>
<linkStateMachine>
<initialStateMachine>BIG_BANG</initialStateMachine>
<initialState>BIG_BANG_INIT</initialState>
<finalStateMachine>CREDIT</finalStateMachine>
<finalState>CREDIT_INIT</finalState>
</linkStateMachine>
<linkStateMachine>
<initialStateMachine>AUTHORIZE</initialStateMachine>
<initialState>AUTH_SUCCESS</initialState>
<finalStateMachine>CAPTURE</finalStateMachine>
<finalState>CAPTURE_INIT</finalState>
</linkStateMachine>
<linkStateMachine>
<initialStateMachine>AUTHORIZE</initialStateMachine>
<initialState>AUTH_SUCCESS</initialState>
<finalStateMachine>VOID</finalStateMachine>
<finalState>VOID_INIT</finalState>
</linkStateMachine>
<linkStateMachine>
<initialStateMachine>CAPTURE</initialStateMachine>
<initialState>CAPTURE_SUCCESS</initialState>
<finalStateMachine>REFUND</finalStateMachine>
<finalState>REFUND_INIT</finalState>
</linkStateMachine>
<linkStateMachine>
<initialStateMachine>CAPTURE</initialStateMachine>
<initialState>CAPTURE_SUCCESS</initialState>
<finalStateMachine>CAPTURE</finalStateMachine>
<finalState>CAPTURE_INIT</finalState>
</linkStateMachine>
<linkStateMachine>
<initialStateMachine>CAPTURE</initialStateMachine>
<initialState>CAPTURE_SUCCESS</initialState>
<finalStateMachine>CHARGEBACK</finalStateMachine>
<finalState>CHARGEBACK_INIT</finalState>
</linkStateMachine>
<linkStateMachine>
<initialStateMachine>REFUND</initialStateMachine>
<initialState>REFUND_SUCCESS</initialState>
<finalStateMachine>REFUND</finalStateMachine>
<finalState>REFUND_INIT</finalState>
</linkStateMachine>
<linkStateMachine>
<initialStateMachine>REFUND</initialStateMachine>
<initialState>REFUND_SUCCESS</initialState>
<finalStateMachine>CHARGEBACK</finalStateMachine>
<finalState>CHARGEBACK_INIT</finalState>
</linkStateMachine>
<linkStateMachine>
<initialStateMachine>PURCHASE</initialStateMachine>
<initialState>PURCHASE_SUCCESS</initialState>
<finalStateMachine>REFUND</finalStateMachine>
<finalState>REFUND_INIT</finalState>
</linkStateMachine>
<linkStateMachine>
<initialStateMachine>PURCHASE</initialStateMachine>
<initialState>PURCHASE_SUCCESS</initialState>
<finalStateMachine>CHARGEBACK</finalStateMachine>
<finalState>CHARGEBACK_INIT</finalState>
</linkStateMachine>
<linkStateMachine>
<initialStateMachine>CHARGEBACK</initialStateMachine>
<initialState>CHARGEBACK_SUCCESS</initialState>
<finalStateMachine>CHARGEBACK</finalStateMachine>
<finalState>CHARGEBACK_INIT</finalState>
</linkStateMachine>
<linkStateMachine>
<initialStateMachine>CHARGEBACK</initialStateMachine>
<initialState>CHARGEBACK_FAILED</initialState>
<finalStateMachine>REFUND</finalStateMachine>
<finalState>REFUND_INIT</finalState>
</linkStateMachine>
</linkStateMachines>
</stateMachineConfig>