How to execute a Process at application start-up or shutdown in BusinessWorks and BusinessWorks Container Edition

Emmanuel Marchiset
2 min readFeb 4, 2024

It is sometimes needed to do things before starting to process events in an application, like for example loading values from files or databases in Shared Variables, or checking the availability of resources that are critical for the application.

It is also sometimes needed to do things when an application is shutting down, like for example cleaning temporary files in a working directory or sending a JMS message to notify a monitoring solution.

This can be done in BusinessWorks and BusinessWorks Container Edition by using an Activator Process, such Process can be created with the following:

. Go to the Module Descriptor Overview panel of your application and click on the Create Activator Process button

Module Descriptor Overview — Creation of an Activator Process

. The Activator Process Creation panel is displayed, selected the target Process Folder and Package, then enter a name for the Process and click Finish

Creation of an Activator Process

. The Activator Process is now created

An empty Activator Process

. Now you can implement your Activator Process as you need

Example of an Activator Process

You can have only one Activator Process per application.

This is generally a good practice to limit the number of activities in an Activator Process and to use Sub Processes if different things have to be done.

In the case you would not need to do something at Startup and nothing at Shutdown you can just leave empty the onShutdown branch (and vice versa).

--

--

Emmanuel Marchiset

I work as an Architect at TIBCO Software on Integration products. Opinions here are my own.