src/main/java/org/edgegallery/appstore/application/inner/OrderService.java
public void startActivatingOrder(Release release, Order order, String token, String userId) {
        String mecPkgId = mecmService.upLoadPackageToNorth(token, release, order.getMecHostIp(),
            userId, getVmDeployParams(release));
        if (StringUtils.isEmpty(mecPkgId)) {
            LOGGER.error("MEC package id is null, failed to create order");
            throw new AppException("Failed to create order", ResponseConst.RET_UPLOAD_PACKAGE_TO_MECM_NORTH_FAILED);
        }
        order.setMecPackageId(mecPkgId);
        order.setStatus(EnumOrderStatus.ACTIVATING);
        setOrderDetail(order, EnumOrderOperation.ACTIVATED.getChinese(), EnumOrderOperation.ACTIVATED.getEnglish());
        orderRepository.updateOrder(order);
        LOGGER.info("Successfully uploaded package to north, order has been activated, mecPackageId: {}", mecPkgId);
    }
/**
     * upload package to north, if the returned packageId is valid, set the status of order as activating.
     *
     * @param release app release information
     * @param order order information
     * @param token user token
     * @param userId id of current user
     */
upload package to north, if the returned packageId is valid, set the status of order as activating.
@param release app release information
@param order order information
@param token user token
@param userId id of current user
upload package to north if the returned packageId is valid set the status of order as activating . @param release app release information @param order order information @param token user token @param userId id of current user
public void startActivatingOrder(Release release, Order order, String token, String userId) {
        String mecPkgId = mecmService.upLoadPackageToNorth(token, release, order.getMecHostIp(),
            userId, getVmDeployParams(release));
        if (StringUtils.isEmpty(mecPkgId)) {
            LOGGER.error("MEC package id is null, failed to create order");
            throw new AppException("Failed to create order", ResponseConst.RET_UPLOAD_PACKAGE_TO_MECM_NORTH_FAILED);
        }
        order.setMecPackageId(mecPkgId);
        order.setStatus(EnumOrderStatus.ACTIVATING);
        setOrderDetail(order, EnumOrderOperation.ACTIVATED.getChinese(), EnumOrderOperation.ACTIVATED.getEnglish());
        orderRepository.updateOrder(order);
        LOGGER.info("Successfully uploaded package to north, order has been activated, mecPackageId: {}", mecPkgId);
    }
public void startActivatingOrder ( Release release , Order order , String token , String userId ) { String mecPkgId = mecmService . upLoadPackageToNorth ( token , release , order . getMecHostIp ( ) , userId , getVmDeployParams ( release ) ) ; if ( StringUtils . isEmpty ( mecPkgId ) ) { LOGGER . error ( "MEC package id is null, failed to create order" ) ; throw new AppException ( "Failed to create order" , ResponseConst . RET_UPLOAD_PACKAGE_TO_MECM_NORTH_FAILED ) ; } order . setMecPackageId ( mecPkgId ) ; order . setStatus ( EnumOrderStatus . ACTIVATING ) ; setOrderDetail ( order , EnumOrderOperation . ACTIVATED . getChinese ( ) , EnumOrderOperation . ACTIVATED . getEnglish ( ) ) ; orderRepository . updateOrder ( order ) ; LOGGER . info ( "Successfully uploaded package to north, order has been activated, mecPackageId: {}" , mecPkgId ) ; }
upload package to north, if the returned packageId is valid, set the status of order as activating.
upload package to north if the returned packageId is valid set the status of order as activating .