Component types in Opportunity Detect

Components are the basic building blocks for trigger systems in Opportunity Detect.

Broadly, there are three types of components: those that can send an event to other components, those that return a value that can be used by other components, and the Action component, which writes Outcome data that can be used by external systems.

With these three types of components, you can build logic to suit your business requirements. A set of components configured to carry out your business logic is called a trigger system.

Event components

With the exception of the Simple component, an event component is activated when it receives an event from another component that causes it to evaluate the data against its criteria. After the logic defined within the component is processed, it sends an event to other components.

An event component is said to 'fire' when it sends an event to activate a downstream event component. When you build a trigger system, you specify event components as the incoming events for other event components, creating an unbroken series of events.

An event component fires a positive event when its criteria are met. Some components can also send a negative event when their criteria are not met.

The following event components have additional features.

  • The Simple component is the only component that does not require an event to activate it. Instead, it processes all incoming data against its criteria. The Simple component requires at least on transaction data source. When it fires, it sends the first event in the series of events that a trigger system depends upon. This is why all trigger systems require a Simple component.
  • The Action component is the only component that writes to a database table or to a customized program via a Web Service connector.

Data components

Data components are invoked by being referenced in another component, which then uses the data returned by the data component in its own evaluation of the customer data. Data components do not fire an event.

The Math, Date, and Boolean components return a single piece of data. The Container and Select components hold one or more rows of data, also called records. Trend components evaluate to true or false.

Action components

When Action components fire, they write the data that you specify to a destination that you specify by choosing the desired data source connector. These outcomes are available for use by external systems.

All trigger systems require an Action component. If a workspace does not contain an Action component, it does not pass validation and you cannot deploy it.