Ratings & reviews for Kenner Soft Service GmbH
Manual
Version 3.13 3.13.35

Workflow module: setting fields automatically by condition and formula

The workflow module automates recurring data maintenance: when a certain event occurs – such as saving a product – KennerPIM checks a condition and sets or changes field values using a formula.

You find the module under Administrator settings → Workflow.

Workflow page in the administrator settings

Action types: when is a workflow executed?

Action type When Typical use
beforeSave before a record is written to the database check or adjust values before saving
afterSave after a record has been saved follow-up actions that do not affect the save itself
beforeRemove before a record is deleted checks or logging before deletion
afterRemove after a record has been deleted clean up, update relations, log
afterRelate when two records are linked (many-to-many) e.g. react to a newly added relation
afterUnrelate when a many-to-many link is removed adjust data after a relation is removed

Formulating conditions

Conditions define which records a workflow applies to. You combine:

  • logical operators: AND, OR, NOT
  • comparisons: Equals, Not Equals, Is Empty, Is Not Empty

Conditions with logical operators and comparisons

Defining the formula for the field change

Creating a workflow

  1. On the workflow page, click Create Workflow in the top right corner.
  2. Fill in the fields: Name, Entity type, Action type, Conditions and Formula.
  3. Set the workflow to Active – only active workflows are executed.
  4. Click Save.

Creating a new workflow with name, entity type, action type, condition and formula

Example

A workflow for the Product entity with the condition "Name equals TEST" replaces the SKU of this product with test_sku after saving.

Example workflow: the SKU is replaced after saving

Monitoring execution

Under Administration → Workflow Logs you see all executed workflow processes and their status. This shows you quickly whether a workflow works as intended.

Workflow logs with the status of the processes

Tip: Test new workflows with a few test records first before applying them to your entire product range.

Try Kenner PIM