3using System.Threading.Tasks;
84 get => this.machineReadableVariable?.
Definition;
114 get => this.@
namespace?.Definition;
132 public override Task
Parse(XmlElement Xml)
144 return base.Parse(Xml);
158 return this.
Register(EventIndex, Arguments,
null,
null);
172 string LegalIdVariable,
string RoleVariable)
174 string ContractIdVariable = await this.contractIdVariable.
Evaluate(Arguments.
Variables);
175 string ContractXmlVariable = await this.contractXmlVariable.
Evaluate(Arguments.
Variables);
176 string ParametersVariable = await this.parametersVariable.
Evaluate(Arguments.
Variables);
178 string MachineReadableVariable = await this.machineReadableVariable.
Evaluate(Arguments.
Variables);
184 this, ContractIdVariable, ContractXmlVariable, ParametersVariable,
185 RolesVariable, MachineReadableVariable, LegalIdVariable, RoleVariable,
201 if (this.condition is
null)
226 StringBuilder sb =
new StringBuilder();
228 sb.Append(this.GetType().Name);
233 return sb.ToString();
244 if (!(this.condition?.HasExpreession ??
false))
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 async Task Insert(object Object)
Inserts an object into the default collection of the database.
async Task AddToCache()
Removes the event handler from the cache.
Event handler for contract events.
Contains information about an event handler reference
Attribute containing a script expression.
async Task< object > Evaluate(Variables Variables)
Evaluates the attribute
string Expression
Expression
async Task< T > Evaluate(Variables Variables)
Evaluates the attribute
string Definition
Attribute definition
Scriptable enumeration attribute.
Scriptable string 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.
string RolesVariableDefinition
Roles Variable definition.
string NamespaceDefinition
Namespace definition.
string ParametersVariableDefinition
Parameters Variable definition.
override Task< EventHandlerReference > Register(int EventIndex, EvaluationArguments Arguments, OnEvent Event)
Registers the event
string NameTypeDefinition
Secondary Name Type definition.
string ContractXmlVariableDefinition
Contract XML Variable definition.
override Task Parse(XmlElement Xml)
Parses the State-machine node.
string MachineReadableVariableDefinition
Machine-readable Variable definition.
override string Label
UML Label for event.
async Task< EventHandlerReference > Register(int EventIndex, EvaluationArguments Arguments, string LegalIdVariable, string RoleVariable)
Registers the event
ContractEventNode()
Abstract base class for contract event nodes.
string Condition
Condition expression.
string ContractIdVariableDefinition
Contract ID Variable definition.
string LocalNameDefinition
Local Name definition.
override async Task< bool > Applies(EvaluationArguments Arguments)
If the event node applies to the current context.
Represents an event definition.
Abstract base class for State-Machine event nodes.
abstract string LocalName
Local name
virtual string Namespace
Namespace
Action executed when entering a state.
SecondaryNameType
What type of secondary name is begin used.