The CustomFunction sample program adds the time that the business process was executed to the end of the output string. To implement this processing, you need to modify the data transformation definition of the Hello business process.
The following is the procedure for modifying the Hello business process.
- Click the HelloBusinessProcess tab.
The business process definition window defined during Hello business process development appears.
![[Figure]](figure/zs041850.gif)
- Click the EditOutputString tab.
The data transformation definition window defined during Hello business process development appears.
![[Figure]](figure/zs041880.gif)
- On the palette of the data transformation definition window, click custom. Then, on the canvas, click between the transformation source and destination to place the custom there.
- On the palette of the data transformation definition window, click Mapping.
- Click custom as the mapping source.
- Click concat as the mapping destination.
A mapping line is set.
![[Figure]](figure/zs041900.gif)
- On the palette of the data transformation definition window, click Select.
- In the data transformation definition window, double-click custom.
The Custom dialog box appears.
- Click the Select Transform function button.
The Select Transform function dialog box appears.
![[Figure]](figure/zs042000.gif)
- In the transformation function tree, select String currentDateTime(), and then click the OK button.
The Select Transform function dialog box closes, and the then Custom dialog box re-appears.
- Click the OK button.
The Custom dialog box closes.
- In the data transformation definition window, double-click concat.
The Concatenate dialog box appears.
![[Figure]](figure/zs042100.gif)
- Confirm that {custom1} has been added at the bottom of the Input list box, and then click the OK button.
The Concatenate dialog box closes.
- On the palette of the data transformation definition window, double-click const.
The Set Constant dialog box appears.
- Select String, and then enter the following character string:
and
Business
Process (
: single-byte space)
![[Figure]](figure/zs042200.gif)
- Click the OK button.
The Set Constant dialog box closes.
- From the Eclipse menu, select File, and then Save.
The Hello business process has now been modified completely.
- Validate and package the modified business process.
For details about validation and packaging, see 5.3.2 Validating and packaging a service adapter.
- When you have modified a business process, define its deployment.
For details about deployment definitions, see 5.3.3 Defining deployment of a service adapter.
- To execute the CustomFunction sample program that you developed
- Use the following procedure to execute the sample program in the same way as in the example of executing the HelloBusinessProcess sample program:
- Perform the procedure in 3.5.5 Importing Eclipse projects.
- Perform the procedure in 3.5.6 Deploying the web project.
- Perform the procedure in 4.3 Operation when a business process is applied.