Class Execution
Assembly: Xareus.Scenarios.Relations.dll
Syntax
[Serializable]
public class Execution
Constructors
Execution()
Execution class constructor
Declaration
Execution(string, string, IEngine)
Create an Execution of a process
Declaration
public Execution(string process, string id, IEngine relationEngine)
Parameters
Properties
change
Declaration
public List<Change> change { get; set; }
Property Value
id
Unique identifier of the execution of the process. Ex : 12345.
Declaration
public string id { get; set; }
Property Value
initialAction
Declaration
public List<Action> initialAction { get; set; }
Property Value
objects
Declaration
public List<IObject> objects { get; set; }
Property Value
process
Name of the process. Ex : Cataract.
Declaration
public string process { get; set; }
Property Value
relations
Declaration
public List<IRelation> relations { get; set; }
Property Value
Methods
Deserialize(string)
Declaration
public static Execution Deserialize(string xml)
Parameters
Type |
Name |
Description |
string |
xml |
|
Returns
Deserialize(string, out Execution)
Declaration
public static bool Deserialize(string xml, out Execution obj)
Parameters
Returns
Deserialize(string, out Execution, out Exception)
Deserializes workflow markup into an Execution object
Declaration
public static bool Deserialize(string xml, out Execution obj, out Exception exception)
Parameters
Type |
Name |
Description |
string |
xml |
string workflow markup to deserialize
|
Execution |
obj |
Output Execution object
|
Exception |
exception |
output Exception value if deserialize failed
|
Returns
Type |
Description |
bool |
true if this XmlSerializer can deserialize the object; otherwise, false
|
LoadFromFile(string)
Declaration
public static Execution LoadFromFile(string fileName)
Parameters
Type |
Name |
Description |
string |
fileName |
|
Returns
LoadFromFile(string, out Execution)
Declaration
public static bool LoadFromFile(string fileName, out Execution obj)
Parameters
Returns
LoadFromFile(string, out Execution, out Exception)
Deserializes XML markup from file into an Execution object
Declaration
public static bool LoadFromFile(string fileName, out Execution obj, out Exception exception)
Parameters
Type |
Name |
Description |
string |
fileName |
string xml file to load and deserialize
|
Execution |
obj |
Output Execution object
|
Exception |
exception |
output Exception value if deserialize failed
|
Returns
Type |
Description |
bool |
true if this XmlSerializer can deserialize the object; otherwise, false
|
SaveToFile(string)
Declaration
public virtual void SaveToFile(string fileName)
Parameters
Type |
Name |
Description |
string |
fileName |
|
SaveToFile(string, out Exception)
Serializes current Execution object into file
Declaration
public virtual bool SaveToFile(string fileName, out Exception exception)
Parameters
Type |
Name |
Description |
string |
fileName |
full path of output XML file
|
Exception |
exception |
output Exception value if failed
|
Returns
Type |
Description |
bool |
true if can serialize and save into file; otherwise, false
|
Serialize()
Serializes current Execution object into an XML document
Declaration
public virtual string Serialize()
Returns
Type |
Description |
string |
string XML value
|