Drag and drop various Blocks to construct your procedure logic. Blocks provide the basic constructs like branching, looping, assignments, raising errors and define a logical unit of work. After adding blocks, configure the blocks in the Block Properties window. After selecting Blocks from the Control Panel, the available blocks appear to the right of the control panel as shown below:

The available blocks include Call, If, Map, While, For Each, Error, Break, End and Transaction. Each are described in the following table:
Example | Block Type | Description |
| Call Block | The Call Block allows you to call other procedures. eCASE provides a list of out of the box procedures that you can call when creating a procedure or event handler. This list of procedures is foundational, allowing you to build other callable procedures. You can call procedures created by App Admin in both event handlers and procedures. (!!) Note: Event handlers are not callable procedures, they are triggered by the platform during the event and triggering moment. The Call Block is similar to calling a method/function in a regular programming language. |
| If | The If block allows you to execute steps based on whether a condition is true or not. By default, the If block contains a Do section, which contains the set of blocks to be executed if the condition defined in the If section is met. Optionally, you can enable the Include Else option, which alters the If block to include an Else section. The Else section contains the set of blocks to be executed if the condition defined in the If section is not met. The Include Else option can be enabled on this block using the Block Properties window. |
| Map | The Map Block provides the ability to map assignments for one or more variables. You can map a list of variables, like an object, to a value or another variable in the Properties window. |
| While | The While Block provides a looping function, repeatedly executing the blocks in the Do section while the specified condition is true. |
| For Each | The For Each Block is an iterating block; it iterates through a list of items. For each item in the list, the block executes the blocks in the Do section. |
| Error | The Error Block raises an error and stops the execution. An error message displays on the end user’s screen. |
| Break | The Break Block is used to break out of the nearest loop. In the Properties window, you can change the functionality of break block to skip the loop. Enabling the Use Skip option changes the block to a Skip Loop Block instead of Break Loop Block:
|
| End | The End Block ends execution of the current procedure. If the procedure has return values, the return values are mapped in the end block. (!!) Note: This block is not required at the end of the procedure. It is only required if the procedure has a returning value. |
| Transaction | Transaction Blocks control a logical unit of work. All steps in a procedure are treated as a single logical unit of work. If you would like to define different logical work units, the Transaction Block is used. If the Atomic property is checked for the Transaction Block, all steps inside the block are treated as an atomic unit of work.
|










