uCosminexus Service Platform, Basic Development Guide

[Contents][Glossary][Index][Back][Next]

6.5.23 Invoke a Java program created by the user

Invoke a Java program created by the user and use as a function. You can use this for processes other than those in other functions provided by uCosminexus Service Architect.

For details about how to create Java programs for invocation, see 6.9 Creating Java programs to be used in the custom function.

Organization of this subsection
(1) Function used
(2) Setting procedure

(1) Function used

Use the custom function to invoke a Java program created by the user.

The following figure shows how to invoke a Java program from the custom function. Note that in the custom function, invoking a Java program is called as transformation function.

Figure 6-24 Invoking a Java program from the custom function (transformation function)

[Figure]

(2) Setting procedure

The following procedure describes how to invoke a Java program created by the user:

  1. In the Eclipse menu, choose Window and Settings.
    The Settings dialog box appears.
  2. In the left of the dialog box, choose HCSC--Definer and Data transformation.
    The settings of the Data Transformation Definition screen appear on the right side of the dialog box.
  3. Click the Custom function tab.
    The Custom function tab of the Settings dialog box appears.
  4. Specify the transformation function definition file and click OK button.
  5. Choose the custom function from the palette (custom) and deploy it in the mapping viewer.
  6. Set the mapping line.
    The number of mapping lines to be set is the same as for the argument of the invoked Java program.
  7. Open the Custom dialog box by either of the following methods:
    • Right click the custom function and choose Settings.
    • Double--click the custom function.
  8. Click Choose transformation function.
    The Choose transformation function dialog box appears.
  9. Choose the method to be invoked from the custom function and click OK button.
    The Choose transformation function dialog box closes and the Custom dialog box appears.
  10. Specify the input value corresponding to Argument name in Input value.
    The specified input value is entered in the argument of the Java program.
  11. Click OK button.

Notes