Introduction🔗

This example shows a very simple flow element which takes a date of birth and returns a star sign. Although a basic (and not all that useful) flow element, the example demonstrates how you can start to implement your own flow elements.

Download example🔗

The source code used in this example is available here:

Dependencies🔗

The flow element will need a reference to the Pipeline core package

Select a tab to view language specific dependencies.

Data🔗

The element data being added to the flow data by this flow element is a star sign. So this should have its own 'getter' in its element data.

Select a tab to view language specific element data implementation.

Flow element🔗

Now the actual flow element needs to be implemented. For this, the flow element's base class can be used which deals with most of the logic. The element properties, evidence keys and the processing are all that need implementing.

Select a tab to view language specific flow element implementation.

Builder🔗

Now the flow element needs one final thing, an element builder to construct it. This only needs to provide the flow element with a logger and an element data factory - as this example has no extra configuration options.

Select a tab to view language specific element builder implementation.

Usage🔗

Select a tab to view language specific usage.

Next steps🔗

The example for Custom On-premise Engine shows how you can extend the functionality of this flow element to use a data file.

The flow element can also be upgraded to use evidence supplied by the client, as shown in the Custom Client-Side Evidence example.

To delegate the processing and logic to a cloud service, refer to the Custom Cloud Engine example.