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

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

Version: 5

Discussion Thread

NOTE: this Rule has been deleted.

There is a newer version of this Rule.

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: 132

Created: Jan. 11, 2019, 3:41 p.m.

full definition:

The below is the JSON description of this object.

It is annotated with links to the documentation of each component.

You can hide fields with default values to make things clearer, and copy it to a clipboard to make creating similar Rules and Options easier.

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" }
], "threshold" : 1.0, "trigger" :

Trigger

{ "repeat" : "different_variables", "arguments" : [

Symbol filter (for search)

{ "type" : "symbol", "_comment" : "Don't use this Rule if we are actually in a planned scenario", "var" : "thisIsAPlannedScenario", "role" : "excluded", "symbol" : "?scenario_plan_tags" }
,

Tag filter (for search)

{ "type" : "tag", "symbol" : "!task" }
], "deactivate_if" : { "thisIsAPlannedScenario" : ["match"] } }
, "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", "confidence" : 1000, "trigger" :

Trigger

{ "repeat" : "different_variables", "arguments" : [

Option filter (for search)

{ "type" : "option", "var" : "optionToDeactivate", "role" : "optional", "created_by" :

Rule filter

{ "type" : "rule", "role" : "optional", "rule" : "Enable-hierarchy-for-task-selection-root" }
}
] }
, "actions" : [

Loop over objects

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

Tag filter

{ "type" : "tag", "symbol" : "hierarchy_for_task_selection_currently_active" }
, "do" : [

Create a Tag

{ "type" : "create_tag", "symbol" : "!nullify", "arguments" : [

Variable

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

Create a Tag

{ "type" : "create_tag", "symbol" : "!deactivate_rule_or_option", "arguments" : [

Rule

{ "type" : "rule", "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", "symbol" : "!deactivate_rule_or_option", "arguments" : [

Variable

{ "type" : "variable", "var" : "optionToDeactivate" }
] }
] }
,

Deactivate this Rule or Option

{ "type" : "deactivate_self" }
] }
], "existing_variables" : { "thisIsAPlannedScenario" :

Variable

{ "type" : "symbol" }
, "disable-hierarchy-for-task-selection-when-task-is-chosen" :

Variable

{ "type" : "option" }
} }

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

{ "repeat" : "different_variables", "arguments" : [

Symbol filter (for search)

{ "type" : "symbol", "_comment" : "Don't use this Rule if we are actually in a planned scenario", "var" : "thisIsAPlannedScenario", "role" : "excluded", "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, "is_reserved" : null, "symbol" : "?scenario_plan_tags" }
,

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, "is_reserved" : null, "symbol" : "!task", "comment" : null, "comment_contains" : null, "comment_matches" : null, "weight" : null, "min_weight" : null, "max_weight" : null, "nullified" : false, "requirement_is_provided" : null, "task_is_finished" : null, "arguments" : {} }
], "deactivate_if" : { "thisIsAPlannedScenario" : ["match"] } }
, "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

{ "repeat" : "different_variables", "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_reserved" : null, "is_the_current_rule" : null, "deactivated" : null, "rule" : "Enable-hierarchy-for-task-selection-root" }
, "created_earlier_than" : null, "created_in_same_event_as" : null, "created_later_than" : null, "is_reserved" : null, "is_the_current_option" : null, "deactivated" : null, "name" : null }
], "deactivate_if" : {} }
, "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, "is_reserved" : null, "symbol" : "hierarchy_for_task_selection_currently_active", "comment" : null, "comment_contains" : 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" }
], "mark_with" : [] }
] }
,

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" }
], "mark_with" : [] }
,

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" }
], "mark_with" : [] }
], "else" : [] }
,

Deactivate this Rule or Option

{ "type" : "deactivate_self", "var" : null }
] }
], "existing_variables" : { "thisIsAPlannedScenario" :

Variable

{ "type" : "symbol", "value" : null }
, "disable-hierarchy-for-task-selection-when-task-is-chosen" :

Variable

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

all versions of this Rule:

Version 9

Version 8 (deleted)

Version 7 (deleted)

Version 6 (deleted)

Version 5 (deleted)

Version 4 (deleted)

Version 3 (deleted)

Version 2 (deleted)

Version 1 (deleted)