Development Procedure

This chapter describes the development procedure for service programs and application module programs.

1. Development Procedure for Service Programs

The following describes the development procedure for service programs.

The following are the steps of developing a service program.

  1. Design

    Create a design and write transaction parameters, input/output definitions, and SQL queries.

    • Transaction parameters

      Add transaction parameters according to the created design. Enter a transaction code, service ID, input structure name, and other transaction information in the parameter registration page.

    • Input/output definition

      Add input/output messages of the service program and create a header file that defines input/output messages' structures according to the created design by using ProMapper Editor.

    • SQL queries

      Add and compile SQL queries and then create DBIO libraries according to the created design by using DBIO Editor. Before writing an SQL query, check that there is a DBIO map that has the same content as an SQL query to write. Make sure that there is no DBMP map with duplicate content.

  2. Add the service to a project and implement the service module

    Add the service to a current project as XA or non-XA by using Studio and implement the service module according to the developed design by using EMB Designer.

  3. Compile and hot deploy

    Select the [Compile] menu to compile the source code and then select the [Dlupdate] menu to perform hot deploy in Studio.

  4. Unit test

    Test the developed service program by using the unit test function of Test Framework. If there is an issue in the program, restart from the step 1.

    If the compilation and hot deploy complete successfully, restart the TP monitor server and add the service. Perform a unit test by using Test Framework by selecting the [Unit Test] menu in Studio.

2. Development Procedure for Application Module Programs

The following describes the development procedure for application module programs.

The following are the steps of developing an application module program.

  1. Design

    Create a design and design, write SQL queries, and design an application module project.

    • SQL queries

      Add and compile SQL queries and then create DBIO libraries according to the created design by using DBIO Editor. Before writing an SQL query, check that there is a DBIO map that has the same content as an SQL query to write. Make sure that there is no DBMP map with duplicate content.

      Add SQK

  2. Define Input/output and implement the business logic

    Create a business module for the application, define input and output, and implement the business logic.

    • Business module creation

      Create an application module project in Studio. Select a template to automatically generate .c, make, and header files.

    • Input/output definition and business logic implementation

      Set input/output structures in the header file that is automatically generated when creating the application module project according to the design by using the Create a new Service Module dialog box in ProMapper Editor. Implement the business logic in EMB Designer.

  3. Compile

    Select the [Compile] menu to compile the source code.

  4. Hot deploy

    If the module is a Dlcall-target library for hot deploy, execute Dlupdate. Select the [Dlupdate] menu to perform hot deploy in Studio.

  5. Unit test

    If the compilation and hot deploy complete successfully, restart the TP monitor server and add the service. Perform a unit test by using Test Framework by selecting the [Unit Test] menu in Studio.