Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
OnContractSignature.cs
1using System.Threading.Tasks;
2using System.Xml;
6
8{
13 {
14 private ScriptableStringAttribute contractIdVariable;
15 private ScriptableStringAttribute legalIdVariable;
16 private ScriptableStringAttribute roleVariable;
17
22 : base()
23 {
24 }
25
29 [DefaultValueNull]
31 {
32 get => this.contractIdVariable?.Definition;
33 set => this.contractIdVariable = new ScriptableStringAttribute(value, this);
34 }
35
39 [DefaultValueNull]
41 {
42 get => this.legalIdVariable?.Definition;
43 set => this.legalIdVariable = new ScriptableStringAttribute(value, this);
44 }
45
49 [DefaultValueNull]
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}
Helps with common XML-related tasks.
Definition: XML.cs:19
static string Attribute(XmlElement E, string Name)
Gets the value of an XML attribute.
Definition: XML.cs:914
Event raised when someone signs a contract where the owner of the associated token is part.
override Task Parse(XmlElement Xml)
Parses the State-machine node.
OnContractSignature()
Event raised when someone signs a contract where the owner of the associated token is part.
override IStateMachineNode Create()
Creates a new node of the corresponding type.