Decision Tables as Class Methods - Gnorion/BizVR GitHub Wiki

Decision Tables as Class Methods

Example

To define the method "new" which creates an instance of a class using positional parameters:

image

This can be invoked in the action of another decision tables as follows:

image

This is similar to how a programmer might define the "new" method.

However, in BizVR there is a much simpler way to do this. You don't need to create a special method to do it. You can use the built in method. Then you only need to write this: image

By specifying keywords for the values you want to set you can populate any or all of the attributes of the class.

If you define your own method then it has to have positional arguments for everything you want to set.

NOTE: parentheses are always required for method calls even if there are no arguments passed in. eg PERSON.new() would create an instance of PERSON but with none of its properties set.