Name: Interact-with-gpa-analyser
Version: 3
Creator: oobola@yahoo.com
Creates an option that allows for a user to input arguments for the program
InteractGpaAnalyser and execute it.
ID: 595
Created: Oct. 17, 2019, 9:50 a.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.
{
"name" : "Interact-with-gpa-analyser",
"description" : "Creates an option that allows for a user to input arguments for the program
InteractGpaAnalyser and execute it.", "dependencies" : [ { "symbol" : "gpa_analyser_v1", "weight" : 1.0, "comment_filter" : null } ], "threshold" : 1.0, "trigger" : { "repeat" : "different_variables", "arguments" : [ { "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" : "?user_input_uploaded_file", "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" : { "0" : { "type" : "file", "var" : "dataJsonFile", "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, "name_matches" : "^.*\\.json$" } } } ], "deactivate_if" : {} }, "actions" : [ { "type" : "create_option", "var" : "interact-with-gpa-analyser", "name" : "interact-with-gpa-analyser", "description" : "prompts user for input parameters", "confidence" : 1000.0, "trigger" : { "repeat" : "never", "arguments" : [], "deactivate_if" : {} }, "display" : { "must_always_be_shown" : true, "parameter_file_name" : "userParametersFile", "message_components" : [ { "type" : "text", "text" : "Input the values/parameters before running the analysis." }, { "type" : "option_parameter_selector", "name" : "action", "title" : "Action to be performed", "description" : "Math function to be performed on the data", "optional" : true, "value" : { "type" : "string", "default" : "mean", "multiline" : false } }, { "type" : "option_parameter_selector", "name" : "mean_type", "title" : "Type of measn to be calculated", "description" : "Type of mean to be calculated, ie. per_student or per_year", "optional" : true, "value" : { "type" : "string", "default" : "per_student", "multiline" : false } }, { "type" : "option_parameter_selector", "name" : "years", "title" : "Years covered", "description" : "Min & max years covered by the provided gpas. Needed if mean_type is per_year.", "optional" : true, "value" : { "type" : "string", "default" : null, "multiline" : false } } ], "buttons" : [ { "text" : "perform analysis", "style" : "cta", "replace_normal_actions" : false, "is_the_default_button" : false, "actions" : [] } ] }, "actions" : [ { "type" : "execute_program", "var" : null, "program" : "InteractGpaAnalyser", "arguments" : { "student_data_file" : { "type" : "variable", "nullable" : false, "var" : "dataJsonFile" }, "user_parameters_file" : { "type" : "variable", "nullable" : false, "var" : "userParametersFile" } }, "argument_lists" : {} } ] } ], "existing_variables" : { "dataJsonFile" : { "type" : "file", "value" : null }, "interact-with-gpa-analyser" : { "type" : "option", "value" : null } } }
InteractGpaAnalyser and execute it.", "dependencies" : [ { "symbol" : "gpa_analyser_v1", "weight" : 1.0, "comment_filter" : null } ], "threshold" : 1.0, "trigger" : { "repeat" : "different_variables", "arguments" : [ { "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" : "?user_input_uploaded_file", "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" : { "0" : { "type" : "file", "var" : "dataJsonFile", "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, "name_matches" : "^.*\\.json$" } } } ], "deactivate_if" : {} }, "actions" : [ { "type" : "create_option", "var" : "interact-with-gpa-analyser", "name" : "interact-with-gpa-analyser", "description" : "prompts user for input parameters", "confidence" : 1000.0, "trigger" : { "repeat" : "never", "arguments" : [], "deactivate_if" : {} }, "display" : { "must_always_be_shown" : true, "parameter_file_name" : "userParametersFile", "message_components" : [ { "type" : "text", "text" : "Input the values/parameters before running the analysis." }, { "type" : "option_parameter_selector", "name" : "action", "title" : "Action to be performed", "description" : "Math function to be performed on the data", "optional" : true, "value" : { "type" : "string", "default" : "mean", "multiline" : false } }, { "type" : "option_parameter_selector", "name" : "mean_type", "title" : "Type of measn to be calculated", "description" : "Type of mean to be calculated, ie. per_student or per_year", "optional" : true, "value" : { "type" : "string", "default" : "per_student", "multiline" : false } }, { "type" : "option_parameter_selector", "name" : "years", "title" : "Years covered", "description" : "Min & max years covered by the provided gpas. Needed if mean_type is per_year.", "optional" : true, "value" : { "type" : "string", "default" : null, "multiline" : false } } ], "buttons" : [ { "text" : "perform analysis", "style" : "cta", "replace_normal_actions" : false, "is_the_default_button" : false, "actions" : [] } ] }, "actions" : [ { "type" : "execute_program", "var" : null, "program" : "InteractGpaAnalyser", "arguments" : { "student_data_file" : { "type" : "variable", "nullable" : false, "var" : "dataJsonFile" }, "user_parameters_file" : { "type" : "variable", "nullable" : false, "var" : "userParametersFile" } }, "argument_lists" : {} } ] } ], "existing_variables" : { "dataJsonFile" : { "type" : "file", "value" : null }, "interact-with-gpa-analyser" : { "type" : "option", "value" : null } } }
all versions of this Rule:
Version 3
Version 2 (deleted)
Version 1 (deleted)