Kumologica: Programming Constructs Support [Videos]
Any product/tooling needs to support basic programming constructs for effective codification. We will look into how these constructs are supported in Kumologica.
Join the DZone community and get the full member experience.Join For Free
Any product/tooling needs to support basic programming constructs like:
- conditional branching,
for an effective codification of the functionality to be programmed.
In this article, we will look into how these constructs are supported in Kumologica.
Conditional Branching (IF ... ELSE)
In our Kumologica flows, sometimes we need to perform different actions based on different conditions. Usually, in programming languages, this is supported by the conditional branching support provided by the IF ... ELSE construct.
Kumologica supports this feature through the Switch node. The Switch node allows messages to be routed to different branches of a flow by evaluating a set of rules. The Switch node will route the message to the first matching rule.
In this video, I will show you how to use the Switch node in Kumologica to achieve conditional branching.
In our Kumologica flows, sometimes we need to repeat a set of actions till a condition is satisfied. Programming languages support this using loops (while, do while).
Kumologica supports looping through the Processor node. Processor node brings easy to use looping feature to the flows. The processor node works like a subflow, allowing you to define a reusable flow segment between the node's
processor in and
In this video, I will show you how to use the Processor node in Kumologica to achieve looping (while).
Looping (do while)
Similar to the previous section where we used the processor node to perform a simple while looping, the same node can be used to achieve do while looping as well.
In this video, I will show you how to use the Processor node in Kumologica to achieve looping (do while).
Opinions expressed by DZone contributors are their own.