RES.Cost.Calculator.Workflow

Cost Calculator Workflow sample building blocks

This sample package contains Services and Run Books. This scenario comes up occasionally - this package provides two methods - this can be done in a number of ways, this is meant only as an example.


Example One: Cost Calculator (DOS) - This Service / Run Book use the DOS SET method to calculate the Cost by the Number of Items and delivers the Total Cost. (This method is limited to integers only. Decimals are not supported) The Service requires two inputs (COST and VOLUME), both inputs use Regular Expressions to control the values entered. The Run Book performs the calculation and returns the result, which is delivered as a Message.


Example Two: Cost Calculator (Python) - This Service / Run Book use the Python method to calculate and format the Cost by the Number of Items and delivers the Total Cost. Requires Python 3.x (Python supports Decimals) The Service requires two inputs (COST and VOLUME), both inputs use Regular Expressions to control the values entered. The Run Book performs the calculation and returns the result, which is delivered as a Message.