The TIBCO Platform is a real-time, composable data platform that will bring together an evolving set of your TIBCO solutions - and it's available now!
A chart showing the TIBCO Platform vision
Jump to content
Articles
Read more about TIBCO use cases, product features, capabilities and more
  • BW6.X - BWCE - How to execute a Process at application start-up or shutdown in BusinessWorks and BusinessWorks Container Edition


    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

    1*8VPKWUygKfKtp0A9hZS_fw.png

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

    1*2YOcZqZN7WduEG05eGj57A.png

    . The Activator Process is now created

    1*kzVGjU9JJe2PQsP46m839w.png

    . Now you can implement your Activator Process as you need

    1*RHE6L37Av3cfxCQx1jUqIQ.png

    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).

    Additional elements

    You can refer to the attached sample project.

    OnStartUpDemo.zip


    User Feedback

    Recommended Comments

    There are no comments to display.



    Create an account or sign in to comment

    You need to be a member in order to leave a comment

    Create an account

    Sign up for a new account in our community. It's easy!

    Register a new account

    Sign in

    Already have an account? Sign in here.

    Sign In Now

×
×
  • Create New...