Excerpt |
---|
Sets the current node of a process to a new node by name. |
Code Block |
---|
public void SetCurrentNodeByNodeName(string name); |
Classes: Process
Parameters
string name
Name of the node.
Example
The following example demonstrates setting the current node of a spawned process to a node named "Target Node".
Code Block |
---|
var newProcess = CreateProcess(@"C:\Documents\test.pdf"); newProcess.SetCurrentNodeByNodeName("Target Node"); Database.InsertProcess(newProcess); |
Remarks
Throws an exception if no node exists by the specified name.
This method alters the process object in memory, and is primarily intended to be used on processes returned from the Database class or spawned from the CreateProcess method.
If you are intending to change the pathway of an executing process, use the SetNextNodeByLinkName or SetNextNodeByNodeName methods instead.