The Business Logic area of cenTaur provides Business Flows and Business Logic Functions that implement a defined business case in cenTaur. Flows and Functions can access nearly every resource in cenTaur via its API. This creates innumerable customization possibilities in cenTaur.

The communication flow of a business flow depends on its specific use case. In general, the nodes of a business flow can create and consume messages and call other resources such as microservices or business logic functions.

Following, we present a simple Business Flow example to give you an impression how a flow works and accesses other resources.

The business flow models the following scenario:

A photographer created photos for a marketing campaign. He uploads the photos via FTP to a Hot Folder. cenTaur creates assets from the images, assigns a review workflow, and sends an email to a user group for the image review.

To create a business flow from this scenario, we define the steps of this business flow. For a better overview, the steps are not split into nodes that are the basic elements of a flow. The example flow is called Review Business Flow:

  1. The Review Business Flow listens for messages about a new file in the Hot Folder.
  2. When an image is uploaded to the Hot Folder, the File Microservice creates this message and publishes it to the Message Hub.
  3. The Review Business Flow reads the New File message and invokes the Create Asset from File business logic function via HTTP.
  4. The Create Asset from File function returns the ID of the new asset to the Review Business Flow.
  5. Review Business Flow uses the asset ID to listen to the Message Hub for the Preview generated message for the new asset.
  6. When it receives the message, the Review Business Flow calls the Asset Management via REST API to set the Review workflow with the Ready for review work flow step for the received asset ID.
  7. The Review Business Flow listens to the Message Hub for the success message of the Asset Management operation.
  8. The Asset Management publishes the success message to the Message Hub.
  9. The Review Business Flow then sends an email to the Marketing Material user group that a new image is ready for review.