BPXE.BPMN.Interpolation (bpxe v0.4.0)

This is a generalized approach to interpolation in BPXE/BPMN, allowing to pass runtime-derived values into content and attributes of various nodes.

The interpolation syntax is simple: anything enclosed between ${{ and }} will be considered an expression. Currently, there is no escaping. If the entire string is one interpolation, the type of the expression will be preserved. Otherwise, it'll be encoded into a string.

Link to this section Summary

Functions

Interpolates a string if it has any interpolations in it.

Link to this section Functions

Link to this function

interpolate(string)

Interpolates a string if it has any interpolations in it.

If it does, it returns a function that takes one argument, which is a callback that resolves the value of the given expression.

If it doesn't, it'll return a string as is.