Excerpt |
---|
Represents a process in memory, containing properties, methods and classes for use in process manipulation.
|
Code Block |
---|
public class Process |
Example
The following example sets the ProcessStatus of an executing process to validation.
Code Block |
---|
public class SetToValidation : CustomNode
{
public override void Run()
{
Process.SetStatus(ProcessStatus.Validation);
}
} |
Classes derived from CustomNode automatically have access to the executing process as a Process class. Additionally, Processes are returned from methods such as GetProcessById or GetProcessesByProperty.
This class is a base type from which the ActionProcess and CaptureProcess derive. It holds only the methods and properties that can be shared between the two products. The base class of Process can be casted to its derived types like so:
Code Block |
---|
var process = Database.GetProcessById(1);
if (process is CaptureProcess captureProcess)
{
captureProcess.Document.AddPage(pagePath);
} |
Changes made to the Process class on the derived CustomNode class are saved automatically at the conclusion of the node.
Processes returned from methods are held in memory unless inserted or updated in the database using Database methods.
Properties
AddHistory Filter by label (Content by label) |
---|
Insert excerpt |
---|
AddHistory Method | AddHistory Method | nopanel | true |
---|
Insert excerpt |
---|
GetProcessDynamic Method | GetProcessDynamic Method | nopanel | true |
---|
Insert excerpt |
---|
SaveProcessDynamic Method | SaveProcessDynamic Method | nopanel | true |
---|
Insert excerpt |
---|
SetCurrentNodeByNodeName Method | SetCurrentNodeByNodeName Method | nopanel | true |
---|
Insert excerpt |
---|
SetStatus Method | SetStatus Method | nopanel | true |
---|
Filter by label (Content by label) |
---|
excerptType | rich contentshowLabels | false |
---|
showSpace | false |
---|
sort | title |
---|
excerptType | simple |
---|
cql | label = "processmethod" |
---|
|