2using System.Collections.Generic;
3using System.Threading.Tasks;
59 public override async Task
Parse(XmlElement Xml)
61 await base.Parse(Xml);
81 base.OnChildNodesUpdated();
83 this.collection = this.GetValueElement<Collection>();
84 this.type = this.GetValueElement<Type>();
85 this.properties = this.GetChildElements<Property>();
95 string Type = (await this.type.
Evaluate(Arguments))?.ToString();
96 List<KeyValuePair<string, object>>
Properties =
new List<KeyValuePair<string, object>>();
100 Properties.Add(
new KeyValuePair<string, object>(
101 (await
Property.
Key.Evaluate(Arguments))?.ToString(),
Generic object. Contains a sequence of properties.
Abstract base class for State-Machine action nodes.
Creates an entry in the ledger.
override async Task Execute(EvaluationArguments Arguments)
Evaluates the action node
Property[] Properties
Entry properties
override IStateMachineNode Create()
Creates a new node of the corresponding type.
override string LocalName
Local name
CreateEntry()
Creates an entry in the ledger.
override void OnChildNodesUpdated()
Method called whenever ChildNodes is updated.
override async Task Parse(XmlElement Xml)
Parses the State-machine node.
Defines a property in an entry.
HeaderValue Value
Value value
Contains information required for evaluating script in a state-machine.
void ConvertValueAttributesToElements(XmlElement Xml, Type[] ValueTypes, bool[] Required)
Converts value attributes to parsed elements. The XML definition has to be parsed before,...
Task< object > Evaluate(EvaluationArguments Arguments)
Evaluates the value node.
Interface for State-Machine nodes