Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
OnContractSignature.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
OnContractSignature
:
GeneralEventNode
13
{
14
private
ScriptableStringAttribute
contractIdVariable;
15
private
ScriptableStringAttribute
legalIdVariable;
16
private
ScriptableStringAttribute
roleVariable;
17
21
public
OnContractSignature
()
22
: base()
23
{
24
}
25
29
[DefaultValueNull]
30
public
string
ContractIdVariableDefinition
31
{
32
get
=> this.contractIdVariable?.
Definition
;
33
set
=> this.contractIdVariable =
new
ScriptableStringAttribute
(value,
this
);
34
}
35
39
[DefaultValueNull]
40
public
string
LegalIdVariableDefinition
41
{
42
get
=> this.legalIdVariable?.
Definition
;
43
set
=> this.legalIdVariable =
new
ScriptableStringAttribute
(value,
this
);
44
}
45
49
[DefaultValueNull]
50
public
string
RoleVariableDefinition
51
{
52
get
=> this.roleVariable?.
Definition
;
53
set
=> this.roleVariable =
new
ScriptableStringAttribute
(value,
this
);
54
}
55
59
public
override
string
LocalName
=> nameof(
OnContractSignature
);
60
65
public
override
IStateMachineNode
Create
()
66
{
67
return
new
OnContractSignature
();
68
}
69
74
public
override
Task
Parse
(XmlElement Xml)
75
{
76
this.contractIdVariable =
new
ScriptableStringAttribute
(
XML
.
Attribute
(Xml,
"contractIdVariable"
),
this
);
77
this.legalIdVariable =
new
ScriptableStringAttribute
(
XML
.
Attribute
(Xml,
"legalIdVariable"
),
this
);
78
this.roleVariable =
new
ScriptableStringAttribute
(
XML
.
Attribute
(Xml,
"roleVariable"
),
this
);
79
80
return
base.Parse(Xml);
81
}
82
86
public
override
string
Label
=> nameof(
OnContractSignature
);
87
}
88
}
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.OnContractSignature
Event raised when someone signs a contract where the owner of the associated token is part.
Definition:
OnContractSignature.cs:13
Waher.Service.IoTBroker.StateMachines.Model.Events.OnContractSignature.Parse
override Task Parse(XmlElement Xml)
Parses the State-machine node.
Definition:
OnContractSignature.cs:74
Waher.Service.IoTBroker.StateMachines.Model.Events.OnContractSignature.RoleVariableDefinition
string RoleVariableDefinition
Role Variable definition.
Definition:
OnContractSignature.cs:51
Waher.Service.IoTBroker.StateMachines.Model.Events.OnContractSignature.LocalName
override string LocalName
Local name
Definition:
OnContractSignature.cs:59
Waher.Service.IoTBroker.StateMachines.Model.Events.OnContractSignature.LegalIdVariableDefinition
string LegalIdVariableDefinition
Legal ID Variable definition.
Definition:
OnContractSignature.cs:41
Waher.Service.IoTBroker.StateMachines.Model.Events.OnContractSignature.OnContractSignature
OnContractSignature()
Event raised when someone signs a contract where the owner of the associated token is part.
Definition:
OnContractSignature.cs:21
Waher.Service.IoTBroker.StateMachines.Model.Events.OnContractSignature.Create
override IStateMachineNode Create()
Creates a new node of the corresponding type.
Definition:
OnContractSignature.cs:65
Waher.Service.IoTBroker.StateMachines.Model.Events.OnContractSignature.Label
override string Label
UML Label for event.
Definition:
OnContractSignature.cs:86
Waher.Service.IoTBroker.StateMachines.Model.Events.OnContractSignature.ContractIdVariableDefinition
string ContractIdVariableDefinition
Contract ID Variable definition.
Definition:
OnContractSignature.cs:31
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
OnContractSignature.cs
Generated by
1.9.5