Workflow Types(4.1)
There are four types of workflow configurations:
- Batch
- Real-Time
- Task
- System Task
Batch Workflow
A batch workflow processes input from a specific source, usually a file. The workflow creates batches from the data and processes them one by one.
In a batch workflow data is collected by a single collecting agent in a transaction-safe manner. A single batch is collected (only once) and is fully processed by the workflow before the next batch is collected.
A batch workflow:
- Processes batches, one at a time.
- Is started either manually or by a scheduled trigger.
Stops either when it finishes processing the input, or when aborted.
Note!
If the workflow aborts, the current batch can be reprocessed.
Real-Time Workflow
Real-time workflows are used in systems where instant processing requests need to be addressed as they occur.
In real-time workflows most of the collecting agents communicate in a two-way manner; they receive requests and provide replies.
A real-time workflow:
Can have more than one collecting agent
Note!
Multithreading operations differ from batch workflows in the following ways:
The order of UDR processing cannot be guaranteed.
Only global MIMs are used.
They can process several UDRs simultaneously. See Multithreading (4.1).
- Once started, the real-time workflows remain active. A real-time workflow is started either manually or by a scheduled trigger and stops either manually or due to an error.
- Processes reside in memory. Transaction safety must be handled prior to collection and after distribution.
- Errors are registered in the System Log and the workflow continues to run. Real-time workflow error handling rarely leads to workflow aborts.
Note!
Real-time workflows may use the Inter Workflow or Kafka agents to forward data to a batch workflow.
Task Workflows
Task workflows are single-agent workflows that execute user-defined SQL, shell scripts, or unit tests.
System Task Workflows
Usage Engine comes with built-in System Task workflows. System Task workflows and groups let you perform activities such as log and run-time data cleanup.
System Task workflows include the following types:
This section includes information about:
Opening a System Task Workflow
- The System Task Workflow is open from the workflow configurations list (Build menu).
- To open a System Task, double-click a System Task workflow or workflow group in the Configurations pane.
System Task Workflows list
Modifying a System Task Workflow Configuration
All System Task Workflow configurations are modified at the template level. However, all workflow properties are set to Final and cannot be modified.
You can modify a System Task configuration, including its scheduling criteria, but you cannot create or remove a System Task configuration.
In the Archive Cleaner Workflow, you are only allowed to modify its scheduling criteria. For further information, see Scheduling in Managing a Workflow Group.
To Modify a System Task Workflow:
- Open the System Task Workflow that you want to modify. You can double-click or right-click on the System Task in the View Configuration.
- Double-click the agent icon to open the Agent Configuration dialog.
- Perform the changes and click OK.
- Save the workflow.
Archive Cleaner
The Archive Cleaner System Task enables the removal of old archived files from the file system. The Archive Cleaner operates according to data that it receives from the Archive profiles.
Note!
You can only modify the scheduling criteria of the Archive Cleaner. See Archive Profile (3.3). Since schedules can only be applied to workflow groups, the Archive Cleaner scheduling is modified from the workflow group configuration.
Configuration Cleaner
The Configuration Cleaner enables the setting of maximum age of an old configuration before it is removed.
Note!
You cannot remove the most recent configuration with the Configuration Cleaner, only the previous ones.
To configure the Configuration Cleaner:
- Select a configuration type from the table and click the entry in the Keep column to prompt the drop-down list.
- Select one of the following options: Always, Days, or Versions.
The Configuration Cleaner System Task
Item | Description |
---|---|
Type | The icon represents the configuration type. |
Name | The name of the configuration type. |
Keep | Select the time unit to specify how long the old configurations should remain in the system. The time unit are as follows:
|
Value | Specify the number of days or versions that represent the period during which configurations are kept. |
Data Veracity Maintenance
The Data Veracity Maintenance system task removes outdated Data Veracity data. This task is only applicable to data in REPROCESSED or DELETE_APPROVED state. For more information, see Data Veracity Maintenance System Task(3.3).
The Data Veracity Maintenance Task
ECS Maintenance
The ECS Maintenance enables the removal of old ECS data from the file system. This task is only applicable to data in the REPROCESSED state. For more information see ECS Maintenance System Task(3.3).
The ECS Maintenance Task
Statistics Cleaner
The Statistics Cleaner enables the removal of old statistics data that has been collected by the Statistics server and stored in the database.
The Statistics Cleaner Task
Item | Description |
---|---|
Minute Level Records | Specifies the number of days during which a minute-level record should be kept in the database. |
Hour Level Records | Specifies the number of days during which an hour-level record should be kept in the database. |
Day Level Records | Specifies the number of days during which a day-level record should be kept in the database. |
System Backup
The System Backup files are stored in $MZ_HOME/backup/yyyy_MM
, where yyyy_MM is translated to the current year and month, and $MZ_HOME/backup
is the default path. The system saves a backup file and names it according to the following format: backup_<date>.zip
. In addition, System Backup lets you specify the maximum age of backup files before they are removed. You can change this location using the following command:
<property name="mz.backup.path" value="${mz.home}/backup"/>
The System Backup configuration dialog contains two tabs:
System Backup: This is to enable the backup option.
Cleanup: This is to configure the time during which a backup should be kept on the disk before it is deleted.
System Backup Tab
The System Backup System Task - System Backup tab
Item | Description |
---|---|
Enable System Backup | Select this checkbox to enable the system backup. This setting is selected by default. |
Use Encryption | Select this checkbox to enable encryption of the backup. |
Password | Enter a password. |
Cleanup Tab
The System Backup System Task - Cleanup tab
Item | Description |
---|---|
System Backup Files | Defines the maximum age of system backup files before they are removed from the host disk. |
System Log Cleaner
The System Log Cleaner deletes the System Log periodically. You specify how long to keep different message types in the System Log Cleaner configuration.
The System Log Cleaner Task
Item | Description |
---|---|
Error/Disaster | Enter the number of days to keep Error and Disaster messages before they are removed from the database. Max value: 99 days Default value: 30 days |
Warning | Enter the number of days to keep Warning messages in the database. Max value: 99 days Default value: 20 days |
Information | Enter the number of days to keep Information messages in the database. Max value: 99 days Default value: 10 days |
User Cleanup
The User Cleanup Task can be used to automatically deleting inactive users. If SSO is turned on, a user logged in through SSO is added in the system upon login, but the user is not removed when it is deleted from the OIDC server. To resolve this, the User Cleanup Task can be used to delete users that have not logged in for a configurable number of days.
The User Cleanup Task
Item | Description |
---|---|
Apply only to SSO users | This setting is enabled by default and limits the function to SSO users only. |
Retention Period | The default value is 0 (zero). This setting specifies the number of days to wait before a user is deleted after their last login session. A value of 0 (zero) disables the cleanup function. |
Default Successor | If a certain user is deleted from the platform, a successor needs to be designated. This user will take ownership of all previously owned configurations. |