1using System.Threading.Tasks;
110 public override Task
Parse(XmlElement Xml)
119 return base.Parse(Xml);
126 string ContractVariable = await this.contractVariable.
Evaluate(Arguments.
Variables);
129 string CurrencyVariable = await this.currencyVariable.
Evaluate(Arguments.
Variables);
132 EventIndex,
this, SellerVariable, BuyerVariable, ContractVariable, ValueVariable,
133 AmountVariable, CurrencyVariable);
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 token transfer events.
async Task< T > Evaluate(Variables Variables)
Evaluates the attribute
string Definition
Attribute definition
Scriptable string attribute.
Contains information required for evaluating script in a state-machine.
Variables Variables
Current set of variables.
Represents an event definition.
Event raised when the associated token is transferred to a new owner.
override string Label
UML Label for event.
override string LocalName
Local name
override async Task< bool > Register(int EventIndex, EvaluationArguments Arguments, OnEvent Event)
Registers the event
override IStateMachineNode Create()
Creates a new node of the corresponding type.
string CurrencyVariableDefinition
Currency Variable definition.
OnTransferred()
Event raised when the associated token is transferred to a new owner.
string SellerVariableDefinition
Seller Variable definition.
string AmountVariableDefinition
Amount Variable definition.
string BuyerVariableDefinition
Buyer Variable definition.
string ValueVariableDefinition
Value Variable definition.
override Task Parse(XmlElement Xml)
Parses the State-machine node.
string ContractVariableDefinition
Contract Variable definition.
Abstract base class for token event nodes.
Action executed when entering a state.
Interface for State-Machine nodes