Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
OnContractSigned.cs
1
using
System.Threading.Tasks;
2
using
System.Xml;
3
using
Waher.Content.Xml
;
4
using
Waher.Persistence.Attributes
;
5
using
Waher.Service.IoTBroker.StateMachines.Model.Attributes
;
6
7
namespace
Waher.Service.IoTBroker.StateMachines.Model.Events
8
{
12
public
class
OnContractSigned
:
GeneralEventNode
13
{
14
private
ScriptableStringAttribute
contractIdVariable;
15
19
public
OnContractSigned
()
20
: base()
21
{
22
}
23
27
[DefaultValueNull]
28
public
string
ContractIdVariableDefinition
29
{
30
get
=> this.contractIdVariable?.
Definition
;
31
set
=> this.contractIdVariable =
new
ScriptableStringAttribute
(value,
this
);
32
}
33
37
public
override
string
LocalName
=> nameof(
OnContractSigned
);
38
43
public
override
IStateMachineNode
Create
()
44
{
45
return
new
OnContractSigned
();
46
}
47
52
public
override
Task
Parse
(XmlElement Xml)
53
{
54
this.contractIdVariable =
new
ScriptableStringAttribute
(
XML
.
Attribute
(Xml,
"contractIdVariable"
),
this
);
55
56
return
base.Parse(Xml);
57
}
58
62
public
override
string
Label
=> nameof(
OnContractSigned
);
63
}
64
}
Waher.Content.Xml.XML
Helps with common XML-related tasks.
Definition:
XML.cs:19
Waher.Content.Xml.XML.Attribute
static string Attribute(XmlElement E, string Name)
Gets the value of an XML attribute.
Definition:
XML.cs:914
Waher.Service.IoTBroker.StateMachines.Model.Attributes.ScriptableAttribute.Definition
string Definition
Attribute definition
Definition:
ScriptableAttribute.cs:37
Waher.Service.IoTBroker.StateMachines.Model.Attributes.ScriptableStringAttribute
Scriptable string attribute.
Definition:
ScriptableStringAttribute.cs:7
Waher.Service.IoTBroker.StateMachines.Model.Events.GeneralEventNode
Abstract base class for general event nodes.
Definition:
GeneralEventNode.cs:12
Waher.Service.IoTBroker.StateMachines.Model.Events.OnContractSigned
Event raised when a contract where the owner of the associated token is part, has become signed.
Definition:
OnContractSigned.cs:13
Waher.Service.IoTBroker.StateMachines.Model.Events.OnContractSigned.LocalName
override string LocalName
Local name
Definition:
OnContractSigned.cs:37
Waher.Service.IoTBroker.StateMachines.Model.Events.OnContractSigned.ContractIdVariableDefinition
string ContractIdVariableDefinition
Contract ID Variable definition.
Definition:
OnContractSigned.cs:29
Waher.Service.IoTBroker.StateMachines.Model.Events.OnContractSigned.OnContractSigned
OnContractSigned()
Event raised when a contract where the owner of the associated token is part, has become signed.
Definition:
OnContractSigned.cs:19
Waher.Service.IoTBroker.StateMachines.Model.Events.OnContractSigned.Parse
override Task Parse(XmlElement Xml)
Parses the State-machine node.
Definition:
OnContractSigned.cs:52
Waher.Service.IoTBroker.StateMachines.Model.Events.OnContractSigned.Create
override IStateMachineNode Create()
Creates a new node of the corresponding type.
Definition:
OnContractSigned.cs:43
Waher.Service.IoTBroker.StateMachines.Model.Events.OnContractSigned.Label
override string Label
UML Label for event.
Definition:
OnContractSigned.cs:62
Waher.Service.IoTBroker.StateMachines.Model.IStateMachineNode
Interface for State-Machine nodes
Definition:
IStateMachineNode.cs:11
Waher.Content.Xml
Definition:
XmlCodec.cs:11
Waher.Persistence.Attributes
Definition:
ArchivingTimeAttribute.cs:4
Waher.Service.IoTBroker.StateMachines.Model.Attributes
Definition:
ExpressionAttribute.cs:9
Waher.Service.IoTBroker.StateMachines.Model.Events
Definition:
EntryEventNode.cs:12
Waher.Service.IoTBroker
StateMachines
Model
Events
OnContractSigned.cs
Generated by
1.9.5