\r\n

51Degrees Pipeline Documentation  4.1Newer Version 4.4

Introduction

This example takes the very simple flow element described in the simple flow element example, and delegates all the logic to a cloud service.

Instead of the data being stored locally and processing being carried out by the flow element directly, as demonstrated in the simple flow element example, this example will call a cloud service to perform the required functionality.

Download Example

The source code used in this example is available here:

Dependencies

The aspect engine will need a dependency on the Pipeline engines package, and cloud request engine package

Select a tab to view language specific dependencies.

Data

The element data implemented in the previous example can now be upgraded to implement an aspect data.

Select a tab to view language specific aspect data implementation.

Aspect Engine

Now the actual aspect engine needs to be implemented. For this, the class from the previous example will now implement the cloud aspect engine's base class.

Select a tab to view language specific aspect engine implementation.

Builder

Now the aspect engine needs one final thing, an element builder to construct it. This needs to provide the aspect engine with a logger and an aspect data factory as in the previous example. However, it also now needs a cloud request aspect engine.

Select a tab to view language specific element builder implementation.

Usage

Select a tab to view language specific usage.

Next Steps

The Custom On-premise Engine example shows you how to build an on premise engine to perform the functionality that was executed by the cloud engine here.