Apama Analytics Builder for Cumulocity IoT 10.3.2 | Apama Analytics Builder for Cumulocity IoT Documentation | Using Apama Analytics Builder for Cumulocity IoT | Using the Model Editor | Working with blocks and wires | Adding a block
 
Adding a block
The blocks in the palette are grouped into different categories. The blocks in the Input and Output categories represent devices and/or device groups that have been registered in the Cumulocity IoT inventory (visualized in the Device Management application). Other categories contain blocks, for example, for adding logic to the model or for adding calculations.
When you move the mouse pointer over a block in the palette, a tooltip appears which briefly explains the purpose of the block. The tooltip also shows the entire name of the block; this is helpful, for example, with input and output blocks when the device name is not fully shown in the palette. Detailed information for each block is available in the documentation pane; see Viewing the documentation for a block.
* To add a block
1. In the palette of the model editor, expand the category which contains the block that you want to add.
2. When you expand the Input or Output category, a search box is shown that you can use to list the devices (for input or output) and device groups (for input only) that you are looking for.
By default, 10 devices and 10 device groups can be shown, sorted alphabetically. You can configure the maximum number of shown devices and device groups as described in Configuring the number of shown devices and device groups. With a large inventory, you will have to search for any devices and device groups that are not shown initially.
The search is case-sensitive. You can enter a name or part of a name. The characters that you type in may be contained at any position within the name. For example, enter the word "test" to show only the devices that have this word in their names. You need not press Enter; the list is updated with each character that you type. When you expand a different category, your search criteria are remembered. This is helpful if you want to have shorter lists for the Input and Output categories, both with individual contents as defined by your search criteria.
The Output category offers for selection a special block, the Trigger Device. This sends the output back to the device which triggered the output.
3. Drag the block from the palette and drop it onto a free space of the canvas.
4. Specify all required parameters for the block. See Editing the parameters of a block.
Note: The block parameter editor is automatically shown when you add a block for which parameters need to be specified. It is not shown, however, if the block does require any parameters (such as the OR block).

Copyright © 2018-2019 | Software AG, Darmstadt, Germany and/or Software AG USA, Inc., Reston, VA, USA, and/or its subsidiaries and/or its affiliates and/or their licensors.