BCI Nodes - CustomAction

<CustomAction> - In BBj 11.00 and higher, this node runs custom Java code. The Java class files must be added to the BASIS installable jar and must implement one of the following BCI interfaces:


Attribute Description Possible Values Default Value
name

Specifies the class name that contains the execute method.

Name of class None
occurs

Specifies when the custom action will occur.

  • startinstall

  • preinstall

  • postinstall

  • finishinstall

  • startuninstall

  • preuninstall

  • postuninstall

  • finishuninstall

preinstall

Common Attribute Description Possible Values Default Value
bit

Specifies the Java bit level for which the BCI node will be active.

0 All bit levels
32 32-bit level
64 64-bit level

In BBj 19.21 and higher, the following values may also be used:

1 32-bit level
2 64-bit level

0 = All bit levels

osbit

Specifies the OS bit level for which the BCI node will be active.

0 All bit levels
32 32-bit level
64 64-bit level

In BBj 19.21 and higher, the following values may also be used:

1 32-bit level
2 64-bit level

0 = All bit levels

osname In BBj 24.10 and higher, specifies the OS for which the BCI node will be active. Multiple OS's are comma separated.
Windows
Mac
Linux
AIX
All
portid

Specifies the port ID for which the BCI node will be active. Multiple port IDs are comma separated.

As of BBj 24.10, the portid attribute has been removed. Use osname instead.

See Platform Availability for possible port IDs.

All port IDs

Example

<CustomAction name="com.basis.install.BASISPreInstallCustomAction" occurs="preinstall" />

BCI Nodes Listing

<BBExec>

<CustomAction>

<Directory>

<Exec>

<Feature>

<File>

<Jar>

<Keep>

<Kill>

<RegEntry>

<Replace>

<Shortcut>

<Suite>

<Suites>

<Variable>