2using System.Threading.Tasks;
31 this.commandNode = CommandNode;
43 public string CommandID => this.commandNode.CommandId;
58 public string SortKey => this.commandNode.SortKey;
96 return this.commandNode.ParsedScript.EvaluateAsync(this.values);
106 throw new Exception(
"Script command is not a query.");
115 return new ScriptCommand(this.node, this.commandNode, this.parameters);
133 Value = v.ValueObject;
Static class managing editable parameters in objects. Editable parameters are defined by using the at...
Contains information about a language.
Contains information about a variable.
Class handling the reception of data from a query.
Tokens available in request.
Represents a command on a script node.
string SortCategory
Sort Category, if available.
string SortKey
Sort Key, if available.
async Task PopulateForm(DataForm Parameters, Language Language, IRequestOrigin Origin)
Populates a data form with parameters for the object.
Task< bool > CanExecuteAsync(RequestOrigin Caller)
If the command can be executed by the caller.
Task< string > GetSuccessStringAsync(Language Language)
Gets a success string, if any, of the command. If no specific success string is available,...
Task ExecuteCommandAsync()
Executes the command.
async Task< SetEditableFormResult > SetParameters(DataForm Parameters, Language Language, bool OnlySetChanged, IRequestOrigin Origin)
Sets the parameters of the object, based on contents in the data form.
Task< string > GetConfirmationStringAsync(Language Language)
Gets a confirmation string, if any, of the command. If no confirmation is necessary,...
string CommandID
ID of command.
CommandType Type
Type of command.
ScriptCommand(VirtualNode Node, ScriptCommandNode CommandNode, ScriptParameterNode[] Parameters)
Represents a command on a script node.
Task< string > GetNameAsync(Language Language)
Gets the displayable name of the command.
Task StartQueryExecutionAsync(Query Query, Language Language)
Starts the execution of a query.
ICommand Copy()
Creates a copy of the command object.
Task< string > GetFailureStringAsync(Language Language)
Gets a failure string, if any, of the command. If no specific failure string is available,...
Represents a command that can be executed on a script node or script reference node.
Represents a parameter on a command.
abstract Task SetParameter(DataForm Parameters, Language Language, bool OnlySetChanged, Variables Values, SetEditableFormResult Result)
Sets the parameters of the object, based on contents in the data form.
abstract Task PopulateForm(DataForm Parameters, Language Language, object Value)
Populates a data form with parameters for the object.
string ParameterName
Parameter name.
Virtual node, that can be used as a placeholder for services.
Interface for editable objects.
Interface for requestors that can act as an origin for distributed requests.