Automation

Automation in CXF is a powerful tool for streamlining repetitive tasks by setting predefined rules and conditions. It helps you automate various processes, making your work more efficient.

In the world of automation, you work with different types of nodes:

  • Trigger: Think of this as the starting point for your automation. It gets things going based on specific events or conditions.
  • Action: These are the tasks you want to perform. They can range from sending emails to updating records.
  • Condition: Conditions are like decision points in your automation. They determine whether the automation should proceed.
  • Stopper: Stopper nodes act as safety brakes. They can halt the entire automation process if certain criteria are met.


Automation follows some rules:

  • You can't create loops in your automation.
  • You're limited to just one trigger.
  • Each node can have many tasks to do, but it can only receive orders from one other node.


Each node has different states:

  • Pending: This is the default state, meaning the node hasn't done its job yet.
  • Running: This is when the node is in the middle of doing its task. Usually, it's quick, but not always.
  • Done: Once the node has completed its task, it goes into the "done" state.
  • Stopped: If something doesn't go as planned, a node can be stopped. It might be due to a failed condition or hitting a stopper node.
  • Ignore: Stopper nodes are always in the "ignore" state.


Campaign triggers are a special type. They're not triggered by events; instead, they're activated by timers. Campaigns can generate multiple execution contexts, each based on specific criteria, making them highly versatile.

In short, automation is a powerful feature in CXF that helps you automate tasks. You work with different types of nodes to define your automation logic. These nodes move through different states as they do their job, and campaigns add an extra layer of flexibility to the whole process.