CampaignExecution Model

CampaignExecution

The CampaignExecution class represents a specific execution of a campaign and contains information about its status, the clients processed, applications created, and any execution errors. This entity is not versioned and extends BaseEntity<Long>.


πŸ“Œ Inheritance and Relationships

  • BaseEntity<Long> β€” a base class provided by timveroOS

  • Relationship with Campaign: many-to-one β€” each CampaignExecution belongs to a single Campaignarrow-up-right


πŸ“Œ Key Fields

  • campaign β€” the associated Campaignarrow-up-right

  • status β€” the current execution status (CampaignExecutionStatus)

  • clients β€” clients selected by the script (Set<Client>)

  • applications β€” applications created as a result (List<Application>)

  • exception β€” error information if execution failed (ExceptionEntity, nullable)


πŸ“Œ The exception Field

The exception field is an object of type ExceptionEntity, provided by the platform. If the execution ends with an error, the stack trace and message are stored here. In the UI (campaign-execution/details.html), it is shown as a clickable link:

<a th:href="@{'/exception-entity/' + *{exception.id}}">Script execution error</a>

πŸ“Œ CampaignExecutionStatus Enum


πŸ“Œ Model Example

Last updated

Was this helpful?