How to create OnStartup and OnShutdown processes in TIBCO BusinessWorks 6.x ?

How to create OnStartup and OnShutdown processes in TIBCO BusinessWorks 6.x ?

book

Article ID: KB0074735

calendar_today

Updated On:

Products Versions
TIBCO ActiveMatrix BusinessWorks -

Description

This article describes steps to create OnStartup and OnShutdown processes in TIBCO BusinessWorks 6.x .
 

Resolution

An activator process is a special process that can be used to perform pre-processing and post-processing tasks when the application is started and stopped respectively. The activator process contains a process service with two operations: OnStartup and OnShutDown.

The OnStartup operation is called when an application is started, but before executing any other processes in the application. The OnStartup operation can be used to implement any pre-processing tasks that must be performed for the application before the regular processing starts. For example, the OnStartup operation can be used to check if the database tables required by an application exist, and create them if they do not exist. If this process instance faults due to an unhandled exception, the application does not start.
The OnShutDown operation is called when an application is stopped, but after stopping and completing all other processes in the application. The OnShutDown operation can be used to implement any post-processing tasks that must be performed for the application after the regular processing is complete. For example, the OnShutDown operation can be used to send an email to administrators notifying them that the application is being stopped.

Click on Application Module -> Module Descriptors -> Overview and create "Activator Process". This is a special process with two operations:

1). OnStartup  : Called when application starts .
2). OnShutdown : Called when application stops.

Note: The activator process in ActiveMatrix BusinessWorks 6.x provides the same functionality as that of the OnStart and OnShutDown activities in ActiveMatrix BusinessWorks 5.x.

Issue/Introduction

How to create OnStartup and OnShutdown processes in TIBCO BusinessWorks 6.x ?

Additional Information

For information on how to create an activator process, see Creating an Activator Process in the TIBCO ActiveMatrix BusinessWorks™ Application Development guide.