IBM Streams 4.3.0

Converting rules to SPL

After you create IBM® Operational Decision Manager (ODM) rules, you can convert the rules to IBM Streams Processing Language (SPL) from the command-line or from Streams Studio.

Before you begin

You must run the streamsprofile.sh script to configure your environment before you can convert your ODM rules to SPL.

Procedure

You can generate SPL code from the command line or from Streams Studio:

Results

Note: If you specified one or more ruleflows, the resulting SPL code will contain Barrier(...) operators for ruleflow join nodes in which the branches are joined. Because the OUT and IN_OUT parameters can be changed on any branch, output assignments in the Barrier(...) operator call to a merge(...) function. By default, the function returns the elements of the first branch. You can edit this function to change the default behavior.