\r\n

51Degrees API Documentation  4.2Newer Version 4.4

Introduction

This example takes the very simple flow element described in the simple flow element example, and adds a data file, upgrading the flow element to an aspect engine.

Instead of storing data statically, as the simple flow element example did, this example will store it in a data file which will be loaded and can also be updated.

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 now as it is implementing an aspect engine rather than a flow element.

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 on-premise 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 data file.

Select a tab to view language specific element builder implementation.

Usage

Select a tab to view language specific usage.

Next Steps

The Custom Client-Side Evidence example shows how you can build a custom engine that can take evidence supplied by the client.