3using System.Threading.Tasks;
60 public override Task
Parse(XmlElement Xml)
64 return base.Parse(Xml);
85 await
this.checkExisting.Evaluate(Arguments.
Variables))
87 IEnumerable<Contract> ContractTemplates;
102 if (Filters.
Count == 1)
120 if (!(ContractTemplates is
null))
126 foreach (KeyValuePair<string, object> P
in ToSet)
132 return new ExistingTemplateFound(Ref, ToSet);
149 private readonly KeyValuePair<string, object>[] toSet;
153 KeyValuePair<string, object>[] ToSet)
156 this.reference = Ref;
162 if (!(this.reference is
null))
163 await this.reference.
Prepare(Arguments);
165 foreach (KeyValuePair<string, object> P
in this.toSet)
Helps with common XML-related tasks.
static string Attribute(XmlElement E, string Name)
Gets the value of an XML attribute.
Static interface for database persistence. In order to work, a database provider has to be assigned t...
static Task< IEnumerable< object > > Find(string Collection, params string[] SortOrder)
Finds objects in a given collection.
This filter selects objects that conform to all child-filters provided.
This filter selects objects that have a named field equal to a given value.
Base class for all filter classes.
A chunked list is a linked list of chunks of objects of type T .
int Count
Number of elements in collection.
void Add(T Item)
Adds an item to the collection.
T[] ToArray()
Returns an array containing all elements of the collection.
Contains the definition of a contract
Event handler for contract events.
string Namespace
Namespace of machine-readable part of contract.
SecondaryNameType NameType
On which element the name check should be performed.
string LocalName
Local-name of machine-readable part of contract.
Abstract base class for persisted state-machine event handlers.
Contains information about an event handler reference
virtual Task Prepare(EvaluationArguments Arguments)
Prepares the collection of event arguments for event handler execution.
bool IsEmpty
If the definition is empty.
string Definition
Attribute definition
Scriptable Boolean attribute.
Contains information required for evaluating script in a state-machine.
Variables Variables
Current set of variables.
Abstract base class for contract event nodes.
async Task< bool > EvaluateCondition(EvaluationArguments Arguments)
Evaluates the condition.
Represents an event definition.
Event raised when a contract template has been approved.
override Task Parse(XmlElement Xml)
Parses the State-machine node.
string CheckExistingDefinition
Check Existing definition.
override string LocalName
Local name
override IStateMachineNode Create()
Creates a new node of the corresponding type.
override async Task< EventHandlerReference > Register(int EventIndex, EvaluationArguments Arguments, OnEvent Event)
Registers the event
OnContractTemplateApproved()
Event raised when a contract template has been approved.
Action executed when entering a state.
Interface for State-Machine nodes
SecondaryNameType
What type of secondary name is begin used.