LogoLogo
timvero.comMaven Repository
  • timveroOS SDK guide
  • timveroOS how-to
  • timveroOS admin-side setup
  • Campaigns in timveroOS
    • 7.11
      • Business Context
      • Introduction
      • Core Concept
        • Entity Diagram
        • Lifecycle Diagram
        • Expression
      • Design and Development of the Campaign Model
        • Campaign model
        • Campaign repository
        • Campaign forms
        • Campaign сontroller
        • UI elements
        • Campaign actions
      • Design and Development of the CampaignExecution Model
        • CampaignExecution model
        • CampaignExecution repository
        • CampaignExecution controller
        • UI elements
      • Expression
      • Services
        • CampaignService
        • CampaignExecutionService
      • Campaign Processing
        • Producer
        • Consumer
      • Post-processing
        • Checker
Powered by GitBook
On this page
  • Purpose of Expressions in the Campaign Process
  • How Expressions Are Used

Was this helpful?

  1. Campaigns in timveroOS
  2. 7.11
  3. Core Concept

Expression

The Expression class has two key properties:

  • expression: The actual script code (stored as text)

  • engineName: The scripting language to use ("javascript" or "python")

Purpose of Expressions in the Campaign Process

Expressions serve as dynamic eligibility filters that determine which clients should be included in a campaign. This provides several important benefits:

  1. Dynamic Client Selection: Rather than hardcoding client criteria in the application, expressions allow for flexible, rule-based selection that can be changed without code modifications.

  2. Business User Control: Marketing teams can create and modify campaign targeting criteria without requiring developer intervention.

  3. Scripting Flexibility: Supporting both JavaScript and Python gives users options based on their preference or specific needs.

How Expressions Are Used

  1. During Campaign Setup: When creating a campaign, administrators define an expression that represents eligibility criteria (e.g., client.creditScore > 700 && client.income > 50000)

  2. During Execution: When the campaign executes:

    • The system retrieves potential client data

    • Passes each client through the script engine along with the expression

    • The expression evaluates to true or false for each client

    • Only clients that evaluate to true are included in the execution

  3. Application Creation: After filtering, applications are created only for the eligible clients

This approach allows for precise targeting of clients based on complex criteria that can be easily modified between campaigns.

PreviousLifecycle DiagramNextDesign and Development of the Campaign Model

Last updated 18 days ago

Was this helpful?