Context

class business_logic.models.Context(**kwargs)
config
Type:

business_logic.config.ContextConfig

get_variable(variable_definition)

Get variable value in current context

Parameters:

variable_definition (business_logic.models.VariableDefinition) – definition of variable

Returns:

variable value

set_variable(variable_definition, value)

Set variable value in current context

Parameters:
class business_logic.config.ContextConfig(**kwargs)

Stores configuration of business_logic.models.Context

Parameters:

kwargs (object) – overrides default configuration values

Raises:

TypeError

defaults = {'cache': True, 'debug': False, 'exception_handling_policy': 'INTERRUPT', 'log': False}

default configuration values

Type:

object

class business_logic.config.ExceptionHandlingPolicy

Enumeration of names of exception handling policies

IGNORE = 'IGNORE'

Ignore exception and continue execution

INTERRUPT = 'INTERRUPT'

Interrupt execution, this is default behaviour

RAISE = 'RAISE'

Re-raise exception