PAZATOR DOCS
WORKFLOW
FEATURE — v0.May2626

WORKFLOW
TASTUR v2.

What it is

TASTUR v2 is the next-generation workflow engine for Pazator. It replaces the original TASTUR system with a visual rule builder, more triggers and actions, schedule-based execution, and automatic hooks into app events. Rules follow the WHEN trigger IF condition THEN action pattern.

Triggers

Events that activate a rule. Available trigger types:

tab_switchUser switches to a tab. Data: to (tab ID).
data_addedNew data saved. Data: count.
threat_detectedHigh-risk entries found. Data: count.
search_performedAfter a search. Data: query.
app_loadOnce on application start.
data_changedAny store mutation. Data: store, action.
scheduleTime-based. Requires interval in condition (e.g. 5m, 1h).

Actions

What happens when a rule fires:

popupModal alert dialog. Params: message.
notifyFloating notification. Params: message.
toastStyled toast with type color. Params: message, type (info/success/warning/error).
tabSwitch to a specific tab. Params: target.
webhookCall external URL. Params: url, method (GET/POST).
api_callCall Pazator internal API. Params: endpoint, method.

Conditions

The optional IF clause evaluates event data. Operators: ==, !=, >, <, >=, <=, contains. For schedule triggers, the condition value sets the interval using shorthand: 30s, 5m, 1h, 1d.

Examples

WHEN tab_switch IF to="threats" THEN popup "Security Clearance Required"
WHEN data_changed THEN notify "Data was modified"
WHEN schedule IF interval=5m THEN webhook http://my-server.com/ping
WHEN threat_detected IF count > 10 THEN toast "Critical threat volume" error
WHEN search_performed IF query=="classified" THEN popup "Search logged"

Usage

Open the Workflow tab from the top menu bar. Click New Rule to open the rule editor. Select a trigger, optionally set a condition, choose an action, and fill its parameters. Save the rule — it activates immediately if enabled. Use the toggle switch on each rule card to enable or disable it.


Source

app/pazator_workflow.js — IIFE module. Automatically hooks into switchTab() and pazatorStore.emit() at app startup. Exposes window.pazatorWorkflow.