Writing a custom activity Java Bean

Custom activity is code written in Java that can be used in IPA.

The SDK for custom activities is the package com.lawson.bpm.adapter.sdk. This package is in the jar file bpm-sdk.jar, included in LAENVDIR/java/thirdparty. The SDK is a framework or platform that can be used to create custom beans. The SDK is not required to write a custom bean.

Custom activities are Java Beans. Input and output to the custom activity are through Java Bean properties and methods. The Custom Activity node uses the following process to run a custom activity:

  1. An instance of the Java Bean specified in the Activity drop-down list is specified.
  2. The write properties of the Java Bean instance are set from the settings specified in the Input list box. If a setting is <default>, the default value of the Java Bean, if any, is used.
  3. The action method of the Java Bean instance specified in the Action drop-down list is executed.
  4. The output variables of the Custom Activity node are set from the read properties of the Java Bean instance. The Output list box shows the names of these output variables.