Shipment is a specification describing a shipment process when an order is made in an eShop. Shipment uses various XSDs, similar to the Cart example.

The following snippet describes the states and the transitions of the Shipment JSXM specification.

    <!--States definition-->
        <state name="initial"/>
        <state name="created"/>
        <state name="quoteOffered"/>
        <state name="confirmed"/>
        <state name="cancelled"/>
    <!--Initial State definition-->
    <initialState state="initial"/>
        <transition from="initial" function="createPF" to="created"/>
        <transition from="created" function="getShipmentRatePF" to="quoteOffered"/>
        <transition from="quoteOffered" function="getShipmentRatePF" to="quoteOffered"/>
        <transition from="created" function="cancelPF" to="cancelled"/>
        <transition from="quoteOffered" function="cancelPF" to="cancelled"/>
        <transition from="quoteOffered" function="confirmPF" to="confirmed"/>
        <transition from="confirmed" function="getConfirmedRatePF" to="confirmed"/>

*The example does not contain implementation and the java adapter.

Download the eShop Maven project.

Back to top

Version: 1.4.11-RC5. Last Published: 2017-11-30.