Skip to content

Core Activities

Version: 1.0.8  ·  ID: zoan-packages-core  ·  Author: Zoan Software

The Core package contains the fundamental activities that structure any automation: making decisions, repeating actions, handling errors, storing data and recording what happens. They don’t automate a specific system (Browser, Excel, etc. do that); they organize the flow of the playbook.

They are installed by default: you will always find them in the palette under the Core group.

ActivityTypeWhat it does
If / Elseif / ElseifRuns one branch or another depending on a condition
ActivityTypeWhat it does
For EachforeachRepeats for each element of a list or table
For Loopfor-loopRepeats a counted number of times
WhilewhileRepeats as long as a condition is true
BreakbreakExits the loop immediately
ContinuecontinueSkips to the next pass of the loop
ActivityTypeWhat it does
Try / Catchtry-catchCatches errors and lets the flow continue
RetryretryRetries a block that fails
ThrowthrowThrows an error on purpose
Should Stopshould-stopTells whether someone asked to stop the execution, to stop cleanly
ActivityTypeWhat it does
Set Variableset-variableAssigns a value to a variable
ActivityTypeWhat it does
LoglogWrites a message to the execution log
Log to Filelog-to-fileAppends a log line to a file
CommentcommentDocumentation note on the canvas (no effect at run time)
DelaydelayWaits for a while before continuing
Invoke Playbookinvoke-playbookRuns another playbook and brings back its results
Invoke Processinvoke-processRuns another process published in Zoan Cloud and brings back its results
I want to…Use
Do something only if a condition is metIf
Process each row of an Excel sheet / each email in a listFor Each
Repeat N times (e.g. 10 pages)For Loop
Repeat until something changesWhile
Keep one error from stopping the whole botTry / Catch
Retry an unstable action (slow website, network)Retry
Stop the bot with a clear error messageThrow
Stop at a safe point when someone asks to stop the executionShould Stop
Store or change the value of a variableSet Variable
Keep a record of what happened (to diagnose)Log
Keep a log in a file of your ownLog to File
Document the flow with a noteComment
Wait for a system to reactDelay
Reuse logic in another playbookInvoke Playbook
Reuse an already published process (for example, a login)Invoke Process