Skip to main content

Core

26 commands. Toolkit id core.

CommandWhat it does
Assign several variablesPut values in several variables in one step, in order: a later value can use a variable set above it.
Assign variablePut a value, or the result of a calculation, in a variable.
Child agent succeededRun another agent (its production version) and be true when it ends without an error, false when it fails.
CommentA note in the steps for people reading the agent; it does nothing when the agent runs.
Continue loopSkip the rest of this pass and start the next pass of the loop; name a loop to continue an outer one.
DelayWait a fixed time, or a random time between two values, before the next step.
Exit loopLeave the loop now and carry on after it; name a loop to leave an outer one.
Exit subflowLeave the subflow now; the agent carries on after the step that ran it (Finally steps still run).
Go toJump to a Label in the same list of steps or one around it. Kept for agents moved from other tools; a Loop, If or subflow is easier to follow.
IfRun the steps inside when the condition is true; otherwise try each Else if, then Else.
LabelA named place in the steps that Go to can jump to; it does nothing itself.
Log messageWrite a message to the run log.
LoopRepeat the steps inside: a number of times, while a condition holds, or once for each item, row, file, e-mail and so on.
ParallelRun each step inside at the same time, and wait until all of them have finished.
Pause agentStop and wait until someone presses Resume in OneAgentStudio or One CommandCenter, or until the time limit.
Run AgentRun another agent with the inputs you give it, and keep the outputs it gives back.
Run subflowRun one of this agent's subflows (a named list of steps kept beside the main steps), then carry on; it shares the agent's variables.
Session is openTrue when a session with this name is open in this run: a workbook, browser, database connection or any other toolkit's session.
State machineMove between named states: each state runs its steps, then the first transition whose condition holds takes the agent to the next state, until a final state.and moves to the next state; the step ends in a final state. Fails with STATE.NO_TRANSITION when a state that is not final has no true transition.
StepA named group of steps that keeps the agent tidy; it changes nothing when the agent runs.
Stop agentEnd the agent now with the status you choose; Finally steps still run.
SwitchCompare one value with each case in turn and run the steps of the first case that matches; Default runs when none does.
Throw errorRaise an error with a code of your choice, for a Catch (or On error) to handle.
TryRun the steps inside; if one fails, run the first Catch that takes the error, then always Finally.
Wait for conditionWait until a condition is true, checking it again and again, up to a time limit.
Watch for interruptionsRun the steps inside while watching for interruptions such as a pop-up: when a handler's condition becomes true, its steps run and the agent carries on.