function onStartAuction(initialAuctionData) {

    var factory = getFactory();

    var transportContractAuction = factory.newResource('outbound.logistics.auction', 'TransportContractAuction', initialAuctionData.auctionId);
    transportContractAuction.route = initialAuctionData.route;
    transportContractAuction.minimumBid = initialAuctionData.minimumBid;
    transportContractAuction.expectedDeliveryDate = initialAuctionData.expectedDeliveryDate;
    transportContractAuction.vehicle = initialAuctionData.vehicle;
    transportContractAuction.managingLogisticsTeam = initialAuctionData.managingLogisticsTeam;

    return getAssetRegistry('outbound.logistics.auction.TransportContractAuction').then(function (transportContractAuctionRegistry) {
        return transportContractAuctionRegistry.add(transportContractAuction);
    });
}
/**
 * Begin an auction
 * @param {outbound.logistics.auction.StartAuction} initialAuctionData
 * @transaction
 */
Begin an auction
@param {outbound.logistics.auction.StartAuction} initialAuctionData
@transaction
Begin an auction @param { outbound . logistics . auction . StartAuction } initialAuctionData @transaction
function onStartAuction(initialAuctionData) {
    var factory = getFactory();
    var transportContractAuction = factory.newResource('outbound.logistics.auction', 'TransportContractAuction', initialAuctionData.auctionId);
    transportContractAuction.route = initialAuctionData.route;
    transportContractAuction.minimumBid = initialAuctionData.minimumBid;
    transportContractAuction.expectedDeliveryDate = initialAuctionData.expectedDeliveryDate;
    transportContractAuction.vehicle = initialAuctionData.vehicle;
    transportContractAuction.managingLogisticsTeam = initialAuctionData.managingLogisticsTeam;
    return getAssetRegistry('outbound.logistics.auction.TransportContractAuction').then(function (transportContractAuctionRegistry) {
        return transportContractAuctionRegistry.add(transportContractAuction);
    });
}
function onStartAuction ( initialAuctionData ) { var factory = getFactory ( ) ; var transportContractAuction = factory . newResource ( 'outbound.logistics.auction' , 'TransportContractAuction' , initialAuctionData . auctionId ) ; transportContractAuction . route = initialAuctionData . route ; transportContractAuction . minimumBid = initialAuctionData . minimumBid ; transportContractAuction . expectedDeliveryDate = initialAuctionData . expectedDeliveryDate ; transportContractAuction . vehicle = initialAuctionData . vehicle ; transportContractAuction . managingLogisticsTeam = initialAuctionData . managingLogisticsTeam ; return getAssetRegistry ( 'outbound.logistics.auction.TransportContractAuction' ) . then ( function ( transportContractAuctionRegistry ) { return transportContractAuctionRegistry . add ( transportContractAuction ) ; } ) ; }
Begin an auction
 @param {outbound.logistics.auction.StartAuction} initialAuctionData
 @transaction
Begin an auction @param { outbound . logistics . auction . StartAuction } initialAuctionData @transaction