How-To cleanup Concepts older than a specific period

How-To cleanup Concepts older than a specific period

book

Article ID: KB0088932

calendar_today

Updated On:

Products Versions
TIBCO BusinessEvents Enterprise Edition -
Not Applicable -

Description

Description:
How-To cleanup Concepts older than a specific period

Issue/Introduction

How-To cleanup Concepts older than a specific period

Resolution

We recommend to delete old concepts in the project code using Instance.deleteInstance. Below are possible options:

Add a datetime property to the concept and set an expiration time. In a maintenance job, delete the old concepts (use a query agent or a BW process to retrieve the concepts).

Create a BW process and retrieve the old concepts from the database/backingstore. Send an Event for each concept which fires a rule to load and deletes the concept.

Create a statemachine for the concept with a timeout for the state and delete the concept when the timeout is reached.