Skip to main content
Skip table of contents

SetCurrentNodeByNodeName Method

Sets the current node of a process to a new node by name.

CODE
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
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.

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.