ASSOCIATE-REACTIVE-DEVELOPER practice question 1 of 35

When the event is mandatory, a Block event such as the Client Action must be specified to handle the event. Although it may be empty.

Full set: 262 questions
Answer options
A: True
B: False
Correct Answer:
T; R; U; E
Explanation

The statement is correct. In Outsystems, a Block can communicate with its parent (a Screen or another Block) by triggering Events. When defining an Event within a Block, you can set its Is Mandatory property to 'Yes'. This enforces a contract requiring any consumer of the Block to provide a handler for that event. The handler is a Client Action within the parent's scope. If a handler is not defined for a mandatory event, Outsystems' Service Studio will report a validation error, preventing the application from being published. The platform allows this required Client Action handler to be empty (i.e., containing only a Start and an End node), which satisfies the compiler's requirement without needing to implement any specific logic.

Why Incorrect

The statement cannot be False because failing to define a handler for a mandatory event is a compile-time error in Service Studio. The platform's compiler explicitly requires that a Client Action be assigned as the handler for any Block event where Is Mandatory is set to 'Yes'.

References

1. Outsystems Official Documentation, "Create and use events in Blocks": In the section "Define an Event in a Block", the documentation for the Is Mandatory property states: "If you set Is Mandatory to Yes, you must define a handler for the Event in the parent Block or Screen." This directly confirms the requirement for a handler.

Source: https://success.outsystems.com/documentation/11/developinganapplication/designui/reuseui/createanduseeventsinblocks/

2. Outsystems Official Documentation, "Handling Events": The section "Handle an Event" illustrates the process of creating a handler. When a Block with a mandatory event is used, the developer must select "New Client Action" for the event's Handler property. The newly created action, which can be left empty, satisfies the requirement.

Source: https://success.outsystems.com/documentation/11/developinganapplication/designui/reuseui/createanduseeventsinblocks/#handle-an-event

3. Outsystems Training Courseware, "Reactive UI Development 101": The official "Blocks and Events" module, part of the guided path for the Associate Reactive Developer certification, teaches this as a core concept. It explains that mandatory events create a strict contract between a Block and its parent, and the parent is obligated to create a handler action.

Source: https://www.outsystems.com/training/courses/126/reactive-ui-development-101/, Module: "Blocks and Events".

Scroll to Top