Document toolboxDocument toolbox

Tick

Description

This unit is a Source unit type.

The Tick unit is a unit that fires an event on demand. This is designed to be used mainly for development/debugging purposes. To fire the event, click on the red circle of the unit icon.

The unit receives all events. When you click the icon, the expression set in the properties is executed on these events. Output events are then sent through the out port.

Configuration

After dragging this unit into the Flow canvas, double-click it to access its configuration options. The following table describes the configuration options of this unit:

Tab

Field

Description

Tab

Field

Description

General

Name

Enter a name for the unit. It must start with a letter, and cannot contain spaces. Only letters, numbers, and underscores are allowed.

Description

Enter a description detailing the scope of the unit.

Language

Specify the language you will use to write the expression in the Value field, e.g. Javascript, Groovy, etc.

Fields

Fields

Click the plus icon to add fields.

You can collapse and expand the fields using the icon, reorder using the arrows, or delete using the X icon.

You can also reorder the fields using drag and drop.

Name

Enter the name of the expected field.

Type

Select the type of the expected output event field (you can also write java class qualified name).

As Expression

Whether the 'value' of the field is to be considered as a literal value or as an expression to be evaluated. 

Value

Value of the field.

If 'asExpression' is off, the value is interpreted as a literal value in string form, which will be parsed into the corresponding type.

If 'asExpression' is on, the value is interpreted as an expression, which will be evaluated to produce a value of the corresponding type. In particular, if you specify a string field as an expression, you should surround it with quotes.

Input ports

This unit does not have any input ports.

Output ports

Port

Description

Port

Description

out

Outputs an event with the configured fields each time you click the unit.

Example

Imagine you wish to repeat an event 10 times to send to a my.app table.

You can use the Repeater unit to do so. First, we add a Tick unit to fire the request every time we need it. Then, connect it to the Repeater unit through its in input port. Finally, we can send the events to a Devo my.app table by connecting the Repeater to Devo Sink unit.

In the Repeater unit properties, set the Times field to 10 to send the event ten times.

In the Repeater unit properties, specify the my.app table in the Table name field.

Download this example

You can try this flow by downloading the following JSON file and uploading it to your domain using the Import option.