◷ Reading Time: 1 minute
Procedure
This command defines a procedure that is executable in the procedural logic. The entire rule logic must be placed inside this command. A procedure is a low level of functionality or behaviour that can handle complex rules or logic. It is also a reusable part of flow logic. It may have calculations, conditions, assignments, etc. A procedure is an executable routine of a rule or logic. It may have input, output or local parameters from different CLR types. In order for a procedure to execute different commands, it must include a Handlers command. Handlers define what commands are available inside a procedure. Procedures can be divided into different sections named Scope. Each Scope will also be able to accept some parameters.
- name
- DESCRIPTION: defines the name of the procedure.
- MANDATORY: YES
- TYPE: string
- enabled
- DESCRIPTION: indicates whether the procedure is enabled or not. If the procedure is not enabled during execution, the engine would throw an exception.
- MANDATORY: YES
- TYPE: Boolean (true/false)
<Procedure name="check customer rate" enabled="true">
</Procedure>