Rule: Disable-hierarchy-for-task-selection-when-task-is-chosen
loading x elements...

Name: Disable-hierarchy-for-task-selection-when-task-is-chosen

Version: 1

Discussion Thread

Creator: initial_tools

Hardcoded Priority (supersedes the rating): 4.5

This Rule has moderator approval.

If a !task has been defined, nullifies hierarchy_for_task_selection_currently_active.

Also deactivates Enable-hierarchy-for-task-selection-root and the Option created by it.

This ensures that the hierarchy of features is no longer displayed to the user when there already is a task_ being worked on.

ID: 74

Created: Sept. 27, 2018, 3:21 p.m.

full definition:

The below is the JSON description of this object.

It is annotated with links to the documentation of each component. Default values are written in grey.

Click to copy this text to your clipboard.

Rule

{ "name" : "Disable-hierarchy-for-task-selection-when-task-is-chosen", "description" : "If a !task has been defined, nullifies hierarchy_for_task_selection_currently_active.

Also deactivates Enable-hierarchy-for-task-selection-root and the Option created by it.

This ensures that the hierarchy of features is no longer displayed to the user when there already is a task_ being worked on."
, "dependencies" : [

Dependency

{ "symbol" : "?scenario_start", "weight" : 1.0, "comment_filter" : null }
], "threshold" : 1.0, "trigger" :

Trigger

{ "allow_repetition" : false, "arguments" : [

Tag filter (for search)

{ "type" : "tag", "var" : null, "role" : "required", "search_type" : "last", "search_postfilter" : null, "targeted_by" : [], "equals" : null, "created_by" : null, "created_earlier_than" : null, "created_in_same_event_as" : null, "created_later_than" : null, "symbol" : "!task", "comment" : null, "comment_matches" : null, "weight" : null, "min_weight" : null, "max_weight" : null, "nullified" : false, "requirement_is_provided" : null, "task_is_finished" : null, "arguments" : {} }
] }
, "actions" : [

Create an Option

{ "type" : "create_option", "var" : "disable-hierarchy-for-task-selection-when-task-is-chosen", "name" : "disable-hierarchy-for-task-selection-when-task-is-chosen", "description" : null, "confidence" : 1000, "trigger" :

Trigger

{ "allow_repetition" : false, "arguments" : [

Option filter (for search)

{ "type" : "option", "var" : "optionToDeactivate", "role" : "optional", "search_type" : "last", "search_postfilter" : null, "targeted_by" : [], "equals" : null, "created_by" :

Rule filter

{ "type" : "rule", "var" : null, "role" : "optional", "targeted_by" : [], "equals" : null, "created_by" : null, "created_earlier_than" : null, "created_in_same_event_as" : null, "created_later_than" : null, "is_the_current_rule" : null, "rule" : "Enable-hierarchy-for-task-selection-root" }
, "created_earlier_than" : null, "created_in_same_event_as" : null, "created_later_than" : null, "is_the_current_option" : null, "name" : null }
] }
, "display" : null, "actions" : [

Loop over objects

{ "type" : "loop", "for" : "theTagToNullify", "in" :

Tag filter

{ "type" : "tag", "var" : null, "role" : "required", "targeted_by" : [], "equals" : null, "created_by" : null, "created_earlier_than" : null, "created_in_same_event_as" : null, "created_later_than" : null, "symbol" : "hierarchy_for_task_selection_currently_active", "comment" : null, "comment_matches" : null, "weight" : null, "min_weight" : null, "max_weight" : null, "nullified" : false, "requirement_is_provided" : null, "task_is_finished" : null, "arguments" : {} }
, "do" : [

Create a Tag

{ "type" : "create_tag", "var" : null, "symbol" : "!nullify", "comment" : null, "weight" : null, "arguments" : [

Variable

{ "type" : "variable", "nullable" : false, "var" : "theTagToNullify" }
] }
] }
,

Create a Tag

{ "type" : "create_tag", "var" : null, "symbol" : "!deactivate_rule_or_option", "comment" : null, "weight" : null, "arguments" : [

Rule

{ "type" : "rule", "nullable" : false, "rule" : "Enable-hierarchy-for-task-selection-root" }
] }
,

Conditionally execute actions

{ "type" : "conditional", "if" :

Reference exists Condition

{ "type" : "reference_exists", "exists" : "optionToDeactivate" }
, "then" : [

Create a Tag

{ "type" : "create_tag", "var" : null, "symbol" : "!deactivate_rule_or_option", "comment" : null, "weight" : null, "arguments" : [

Variable

{ "type" : "variable", "nullable" : false, "var" : "optionToDeactivate" }
] }
], "else" : [] }
,

Deactivate this Rule or Option

{ "type" : "deactivate_self", "var" : null }
] }
], "existing_variables" : { "disable-hierarchy-for-task-selection-when-task-is-chosen" :

Variable

{ "type" : "option", "value" : null }
} }

all versions of this Rule:

Version 1