Online Service Program

Since center-cut is a framework that reuses online services, there is no need to create them separately if existing online services are available. However, because the input/output DTO of the developed online service must also be used by the center-cut engine, the center-cut engine application (“BxmCCOnExec”) must reference a project that contains the input/output DTO.

In this guide, the service of transaction code "SSMP2001A001" is defined for use, and this service is an online service that deposits interest.

1. Checking the Online Service Transaction Code

In Web admin, you can query using the transaction code on the Online Management > Transaction Parameter Management screen.

cc online web
Figure 1. SSMP2001A001 : Interest Deposit

2. Example of an Online Service

This is a service that receives customer number, account number, and interest amount as input and deposits the interest.

@BxmService("DepositCcService")
@BxmCategory(logicalName = "Interest Deposit", description = "Interest Deposit")
public class DepositCcService {
    final Logger logger = LoggerFactory.getLogger(this.getClass());
    @Autowired
    private SmpDepositBc smpDepositBc;

    @BxmServiceOperation("deposit_cc_service")
    @BxmCategory(logicalName = "Interest Deposit", description = "Interest Deposit Center-Cut Online sample")
    @TransactionalOperation
    public void deposit_cc_service(DepositCcServiceIn in) throws DefaultApplicationException {

        /**
         * Check input items
         */
        this.inputValidation(in);
        /**
         * Call bean
         */
        smpDepositBc.insertDeposit(in);

    }

    private void inputValidation(DepositCcServiceIn in)
            throws DefaultApplicationException {

        /**
         *  Check for null input value
         */
        if (in == null) {
            throw new DefaultApplicationException("BXME30000", new Object[]{"No input value"});
        }
        /**
         * Check for missing input items
         */
        else {
            /**
             * Check for missing customer number input
             */
            if (StringUtils.isEmpty(in.getCusNo())) {
                throw new DefaultApplicationException("BXME30000", new Object[]{"Please enter customer number"});
            }
            /**
             * Check for missing account number input
             */
            if (StringUtils.isEmpty(in.getAccNum())) {
                throw new DefaultApplicationException("BXME30000", new Object[]{"Please enter account number"});
            }
        }

    }
}

In the bean, implement it so that it calls the DBIO that deposits interest into the account. (For details, refer to and implement according to the online guide.)

SWLab Bankware Global
  • 전체
  • BXM
  • BXCM
  • BXCP
  • BXI
제품 선택 시 더 정확한 매뉴얼 가이드를 제공해드립니다.

Copyright© Bankwareglobal All Rights Reserved.