{% extends "base_admin.html" %} {% block scripts %} {% endblock %} {% block pagehead %}

Generate a new Rule

{% endblock pagehead %} {% block content %}
{% if errors %} {% endif %}
{% if not edit %}
{% csrf_token %} {% else %} {% csrf_token %} {% endif %}
Editing mode:
Form mode edition allows to create a rule using the form fields below. Advanced Mode edition allows you to write rules according to RegexParser syntax

General rule parameters

: {% if edit or saved %} {% if enabled %} {% else %} {% endif %} {% else %} {% endif %}

The priority of a Rule, is the position of the rule in the RuleTable ruleSet. The higher the priority, sooner will be processed. The Enable Checkbox enable or disable the rule. If the rule is enabled, will be processed else, the rule will be avoided when the process starts.

Priority:

Form Mode

Rule Condition:

Operators

&&
||
not

Actions

{% if condition != "" and edit or saved and condition != "" %} {% else %} {% endif %}
{{condition}}

Rule Parameters:

Value:
Type:
Action:
Error Message:
Description:

Advanced Mode

Rule:
Rule syntax is:
if Condition then accept/deny [nonterminal] [do Action] [denyMessage ErrorMessage] [#Description]
Condition Mappings:
The Condition mappings allow PolicyEngine relate the conditions of the rules with the requests of the users in order to evaluate if the request is possible or not.
{% for map in ConditionMappings.keys %} {% cycle ' ' ' ' None as t %} {% if t %} {% else %} {% endif %} {% endfor %}
{{ map }} {{ map }}
Action Mappings:
The Action Mappings allow PolicyEngine relate the actions of the rules with possible fuction or methods programmed by the Island Manager
{% for action in ActionMappings.keys %} {{ action }}{% if not loop.last %},{% endif %} {% endfor %}
{% if edit %} {% else %} {% endif %}
Policy Manager | Dashboard
{% endblock content %}