glyphox
Reference · 8 of 9Workflow nodes

Documentation / Reference

Workflow nodes

Every node in the workflow editor's toolbox, what it does and what you set on it.

Applies to Glyphox 1.0.10

The toolbox groups the nodes as this page does. Drag a node onto the canvas and connect its handles, or drop it onto a connection to insert it there. Most nodes also have a Label, which the canvas shows.

A line leaves a node on the side that faces the node it goes to, bends round any node in its way and ends in an arrowhead at its target. A Gateway's conditions and an Approval's outcomes each leave on the side of their own target, with their captions. A line that returns to an earlier node runs in a lane of its own beside the flow.

A node has one line out for each of its branches, and drawing a second line from the same point replaces the first. A Parallel Split is the exception: every line drawn from it starts a branch. Right-click a node for Cut, Copy, Paste, Duplicate and Delete, and drag on an empty area to select several nodes. The article Logic flows and actions, in this section, describes these in full.

The Ticket Escalation workflow fitted in the workflow editor: the toolbox on the left, the graph from Trigger through Triage Agent, a Gateway and an Approval to its End nodes, and the workflow's properties on the right
A workflow in the workflow editor, with the toolbox and the workflow's properties.

Terminals

NodeWhat it does
StartWhere the workflow begins. The triggers in the Triggers menu enter here. Set its Label, for example Order received.
EndThe workflow's exit point. A workflow can have several.
Agent TaskHands the step to an agent. The instance waits while the agent runs and resumes with its result.
TerminateEnds the instance immediately. Its Reason is kept in the instance's audit trail.

Human

NodeWhat it does
Human TaskAssigns work to a role or a user and waits until it is completed.
ApprovalA human task with named outcomes. Each outcome leads along its own connection.

Time

NodeWhat it does
TimerSuspends for a delay or until a time.
Wait for SignalSuspends until the instance receives a signal with the node's Signal name.

Automation

NodeWhat it does
Automatic ActivityRuns a sequence of steps as one workflow step. Its server action is created with it, from Properties, and is listed under the workflow.
Service CallRuns an existing action as one step.

Structure

NodeWhat it does
GatewayBranches on the first matching condition.
Sub-ProcessRuns another workflow as a nested instance and waits for it to finish.
Parallel SplitStarts every outgoing branch at once.
Parallel JoinWaits for every incoming branch to arrive, then continues as one.

Human Task and Approval

The Ticket Escalation workflow with the Human Task node selected: Title, Assignee role and Due in (minutes) in its properties
A Human Task node and its properties.
TitleShown in the Task Inbox.
InstructionsWhat the person is asked to do.
Assignee rolePeople with this role see the task in their Task Inbox. Any of them can complete it. The list offers the roles defined in Module Settings → Security.
Assignee userThe user's ID or email. Used instead of the role.
Due in (minutes)When the task becomes overdue. The workflow's escalation rules act on it.
PageAn external link of the module, where the task is done. Its parameters take values from the workflow's variables and the task's ID. The Task Inbox shows Open, and the Console links to it.
Form fieldsValues the person enters when completing the task, each with a name, a label, a type and Required. They are added to the instance's variables.
OutcomesApproval only. Approved and rejected by default. Each outcome becomes a connection point on the node, shown with its name.

Agent Task

AgentOne of the module's agents.
InputsA value for each of the agent's inputs, as an expression over the workflow's variables.
Output variableThe name under which the agent's result is stored.
Session keySteps that share a session key share a conversation, so the agent starts from what earlier steps established.

Service Call and Automatic Activity

ActionThe action the step runs. For an Automatic Activity, enter a name and select Create to create its server action.
Input parametersA value for each of the action's parameters.
Output variableThe name under which the action's result is stored.
Deadline (seconds)How long the step may run before the instance fails at it. Leave it empty to use the module's workflow step deadline, which is 10 minutes by default.

Timer and Wait for Signal

ModeTimer only: Relative delay, with Delay (minutes), or Until timestamp, with an expression for the time.
Signal nameWait for Signal only: the name of the signal that resumes the instance.

Gateway and Sub-Process

ConditionsGateway: each condition is an expression with the handle it leads to. The first condition that matches is taken.
Default handleGateway: the handle taken when no condition matches.
WorkflowSub-Process: the workflow to run as a nested instance, with its inputs and an Output variable for its result.

Debugging

Select the dot on the left edge of a node, or select the node and press F9, to set a breakpoint. During a run started with F5, the workflow pauses at that step in the VS Code debugger.

The Workflow overview, in this section, explains how a workflow starts, waits and escalates. Add an approval step and Add an AI step with sign-off, under How-to guides, build workflows step by step.

If a step fails, see Troubleshoot the first run or contact support.