Introduction🔗

Build a flow element that takes a date of birth and returns a star sign. Use this example as a starting point for 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🔗

Create an element builder that constructs the flow element with a logger and an element data factory. This example has no additional 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.