2using System.Threading.Tasks;
46 XmlContent = N.OuterXml;
48 throw new Exception(
"Expected XML content.");
51 if (!(this.Personal is
null))
53 if (await this.Personal.Evaluate(Arguments) is
bool b)
56 throw new Exception(
"Personal must be a boolean value.");
68 Timestamp = DateTime.UtcNow,
74 if (Arguments.
Token is
null)
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.
An xml note logged on the token.
Abstract base class for note actions.
Personal Personal
Personal value
Defines if a note is personal or not.
override string LocalName
Local name
XmlNote()
Adds an XML note.
override async Task Execute(EvaluationArguments Arguments)
Evaluates the action node
override IStateMachineNode Create()
Creates a new node of the corresponding type.
Contains information required for evaluating script in a state-machine.
StateMachine Machine
Reference to state-machine definition.
Token Token
Reference to related token.
virtual string Namespace
Namespace
Task< object > Evaluate(EvaluationArguments Arguments)
Evaluates the value node.
Duration? ArchiveRequired
Duration after which token expires, the token is required to be archived.
CaseInsensitiveString StateMachineId
ID of State Machine.
Duration? ArchiveOptional
Duration after which token expires, and the required archiving time, the token can optionally be arch...
DateTime Expires
When state-machine expires
Interface for State-Machine nodes