Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
ReportScript.cs
1using System.Threading.Tasks;
2using System.Xml;
3using Waher.Script;
4
6{
11 {
12 private readonly Expression parsed;
13
19 public ReportScript(XmlElement Xml, ReportFile Report)
20 : base(Report)
21 {
22 this.parsed = new Expression(Xml.InnerText);
23 }
24
30 public override async Task<bool> Execute(ReportState State)
31 {
32 await this.parsed.EvaluateAsync(State.Variables);
33 return true;
34 }
35 }
36}
Executes script when report is being executed.
Definition: ReportScript.cs:11
override async Task< bool > Execute(ReportState State)
Executes the report action.
Definition: ReportScript.cs:30
ReportScript(XmlElement Xml, ReportFile Report)
Executes script when report is being executed.
Definition: ReportScript.cs:19
Abstract base class for report actions.
Definition: ReportAction.cs:9
ReportFile Report
Parsed report containing the report action.
Definition: ReportAction.cs:24
Contains a parsed report, as defined in a report file.
Definition: ReportFile.cs:23
Class containing the state of a report.
Definition: ReportState.cs:12
Variables Variables
Current set of variables.
Definition: ReportState.cs:55
Class managing a script expression.
Definition: Expression.cs:41