Including processes

BI# supports modular software design and reuse. Its most important tool is the #include statement. It allows to define a set of functions in a single place and use it wherever required. If you have a mathematical function stored in a process named math.bs, for example, you can include it into your own process with this statement:

 #include "math.bs", "1.0"

The #include statement expects two arguments. The first argument is the name of the process to be included. The second argument specifies the version of the process to include.

If you always want to include the latest version of a process, set the process version to "*". For example:

#include "booking", "*"

This statement always includes the latest version of the process named "booking".