Rule: Spawn-recognize-failure-to-convert-file
loading x elements...

Name: Spawn-recognize-failure-to-convert-file

Version: 7

Discussion Thread

Creator: initial_tools

Hardcoded Priority (supersedes the rating): 4.1

This Rule has moderator approval.

React to a task_convert_file_type.
Will display a message to the user admitting failure if it turns out that the task can't be solved.

ID: 330

Created: April 9, 2019, 4:57 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" : "Spawn-recognize-failure-to-convert-file", "description" : "React to a task_convert_file_type.
Will display a message to the user admitting failure if it turns out that the task can't be solved."
, "dependencies" : [

Dependency

{ "symbol" : "task_convert_file_type" }
], "threshold" : 1.0, "trigger" :

Trigger

{ "repeat" : [ "theTask" ], "arguments" : [

Tag filter (for search)

{ "type" : "tag", "var" : "theTask", "symbol" : "task_convert_file_type", "task_is_finished" : false }
] }
, "actions" : [

Create an Option

{ "type" : "create_option", "var" : "recognize-failure-to-convert-file", "name" : "recognize-failure-to-convert-file", "description" : "An option with a low confidence that also requires that the task_convert_file_type is not marked with reserve_task: It checks if the task is finished, and if not then it displays a message to the user stating that the task can't be solved.", "confidence" : 2.1, "trigger" :

Trigger

{ "arguments" : [

Tag filter (for search)

{ "type" : "tag", "targeted_by" : [

Tag filter (for search)

{ "type" : "tag", "role" : "excluded", "symbol" : "reserve_task" }
], "equals" : "theTask" }
,

Tag filter (for search)

{ "type" : "tag", "var" : "taskIsFinished", "role" : "optional", "equals" : "theTask", "task_is_finished" : true }
] }
, "actions" : [

Conditionally execute actions

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

Reference exists Condition

{ "type" : "reference_exists", "exists" : "taskIsFinished" }
, "else" : [

Create a Message

{ "type" : "create_message", "message_components" : [

Error

{ "type" : "error", "error" : "Unable to convert the file type." }
] }
] }
] }
], "existing_variables" : { "theTask" :

Variable

{ "type" : "tag" }
, "recognize-failure-to-convert-file" :

Variable

{ "type" : "option" }
} }

Rule

{ "name" : "Spawn-recognize-failure-to-convert-file", "description" : "React to a task_convert_file_type.
Will display a message to the user admitting failure if it turns out that the task can't be solved."
, "dependencies" : [

Dependency

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

Trigger

{ "repeat" : [ "theTask" ], "arguments" : [

Tag filter (for search)

{ "type" : "tag", "var" : "theTask", "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_convert_file_type", "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" : false, "arguments" : {} }
], "deactivate_if" : {} }
, "actions" : [

Create an Option

{ "type" : "create_option", "var" : "recognize-failure-to-convert-file", "name" : "recognize-failure-to-convert-file", "description" : "An option with a low confidence that also requires that the task_convert_file_type is not marked with reserve_task: It checks if the task is finished, and if not then it displays a message to the user stating that the task can't be solved.", "confidence" : 2.1, "trigger" :

Trigger

{ "repeat" : "never", "arguments" : [

Tag filter (for search)

{ "type" : "tag", "var" : null, "role" : "required", "search_type" : "last", "search_postfilter" : null, "targeted_by" : [

Tag filter (for search)

{ "type" : "tag", "var" : null, "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" : "reserve_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" : {} }
], "equals" : "theTask", "created_by" : null, "created_earlier_than" : null, "created_in_same_event_as" : null, "created_later_than" : null, "is_reserved" : null, "symbol" : null, "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" : {} }
,

Tag filter (for search)

{ "type" : "tag", "var" : "taskIsFinished", "role" : "optional", "search_type" : "last", "search_postfilter" : null, "targeted_by" : [], "equals" : "theTask", "created_by" : null, "created_earlier_than" : null, "created_in_same_event_as" : null, "created_later_than" : null, "is_reserved" : null, "symbol" : null, "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" : true, "arguments" : {} }
], "deactivate_if" : {} }
, "display" : null, "actions" : [

Conditionally execute actions

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

Reference exists Condition

{ "type" : "reference_exists", "exists" : "taskIsFinished" }
, "then" : [], "else" : [

Create a Message

{ "type" : "create_message", "var" : null, "visibility" : "all", "message_components" : [

Error

{ "type" : "error", "error" : "Unable to convert the file type." }
] }
] }
] }
], "existing_variables" : { "theTask" :

Variable

{ "type" : "tag", "value" : null }
, "recognize-failure-to-convert-file" :

Variable

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

all versions of this Rule:

Version 7

Version 6 (deleted)

Version 5 (deleted)

Version 4 (deleted)

Version 3 (deleted)

Version 2 (deleted)

Version 1 (deleted)