Logic Actions

Overview

  • The Logic category within a workflow actions includes actions that execute a predefined set of rules and steps to control the flow of processes.

  • These actions are fundamental for making decisions, branching workflows, and manipulating data based on specific conditions.

  • Logic actions enable workflows to dynamically adapt to different scenarios, ensuring that the correct operations are performed based on the input or context.

Actions

image-20240814-141239.png

Logic Action

Description

Reference

Logic Action

Description

Reference

Assignment

It consists of the basic operation of assigning a value to a variable.

For example, x = 10 assigns the value 10 to the variable x.

Assignment Action

Decision

It consists of conditional statements that allow the program to execute different blocks of code based on whether a specific condition is true or false.

For example, it includes if, else if, and else statements.

Decision Action

Switch

It offers an alternative way to handle multiple branching scenarios. It tests a variable for equality against a list of values and executes a corresponding block of code based on the matching value.

Switch Action

Loop

It is used to repeat a workflow multiple times until a specified condition is met. Common types of loops include for, while, and do-while loops.

Loop Action

Validate

It involves checking whether data meets certain requirements or constraints, such as correct data type, length, format, or range.

Validate Action

Logs

It involves recording events, messages, or data during program execution. Logs are valuable for debugging, monitoring, and analyzing software behavior.

Logs Action

Filter

It involves selecting a subset of items from a larger set based on specific criteria or conditions, such as filtering a list of numbers to include only even numbers.

Filter Action

Map

It transforms each element of a collection based on a Key value. It applies the function to each element and generates a new collection with the transformed values.

Map Action

Code

It refers to the instructions written in a programming language that define the behavior of a software application.

Code Action