examples/ShoppingCartMachine.js
/**
 * Following previous machine composition, in this case more complex values, with validations, are added to the machine.
 * In particular, item will be changed to be a list of items, and each item will be of type CartItem.
 * Machine structure wont be affected.
 *
 * @constructor
 */
Following previous machine composition, in this case more complex values, with validations, are added to the machine.
In particular, item will be changed to be a list of items, and each item will be of type CartItem.
Machine structure wont be affected.

@constructor
Following previous machine composition in this case more complex values with validations are added to the machine . In particular item will be changed to be a list of items and each item will be of type CartItem . Machine structure wont be affected . @constructor
function ShoppingCartMachineWithComplexValues() {
    var machine = new ShoppingCartMachine();
    machine.addProperty(new Property("items", null, [it.isArray, _isArrayOfCartItems]));
    return machine;
}
function ShoppingCartMachineWithComplexValues ( ) { var machine = new ShoppingCartMachine ( ) ; machine . addProperty ( new Property ( "items" , null , [ it . isArray , _isArrayOfCartItems ] ) ) ; return machine ; }
Following previous machine composition, in this case more complex values, with validations, are added to the machine.
Following previous machine composition in this case more complex values with validations are added to the machine .