deny policy

Prohibits the event if the current state is on the received list of states.

The list of states is taken from the policy configuration.

Type: call policy

Syntax

deny <configuration> ()

Policy configuration

<configuration> ::= <states>

<states> ::= "[" <state> {"," <state>} "]"

Configuration elements

<states>

JSON array of states to check.

<state>

State name

Returned value

KSS_DENY if the current state is on the received list of states, or KSS_GRANT if it is not on the list.

Example

...

policy if_not_stopped = service_flow.deny [sleep, stopped, finished];

entity service {

security call use = if_not_stopped;

}

Page top