Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


Excerpt

Represents a GlobalAction process in memory, containing properties, methods and classes for use in process manipulation.


Code Block
public class ActionProcess : Process

Example

The following example logs the Database ID, Archive ID, and Document ID of the GlobalSearch document associated with the ActionProcess.

Code Block
public class ExampleActionNode : ActionNode
{
    public override void Run()
    {
        LogHistory($"Database ID: {Process.Document.DatabaseId}");
        LogHistory($"Archive ID: {Process.Document.ArchiveId}");
        LogHistory($"Document ID: {Process.Document.DocumentId}");
    }
}

Remarks

Classes derived from ActionNode automatically have access to the executing process as an ActionProcess class. Additionally, ActionProcesses are potentially returned from methods that return a Process base class, such as GetProcessById or GetProcessesByProperty. This process may be casted to an ActionProcess like so:

Code Block
var process = Database.GetProcessById(1);
if (process is ActionProcess actionProcess) 
{
    LogHistory($"Database ID: {actionProcess.Document.DatabaseId}");
    LogHistory($"Archive ID: {actionProcess.Document.ArchiveId}");
    LogHistory($"Document ID: {actionProcess.Document.DocumentId}");
}


Changes made to the Process class on CustomNode classes 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

Insert excerpt
Properties Class
Properties Class
nopaneltrue

Insert excerpt
ActionDocument Class
ActionDocument Class
nopaneltrue

int Id

Id of the process.

ProcessType ProcessType

Type of the process.

dynamic Workflow

Dynamic object containing the workflow that this process is based on. Changes made to this object will not be saved. 

Methods

Insert excerpt
AddHistory Method
AddHistory Method
nopaneltrue

Insert excerpt
GetProcessDynamic Method
GetProcessDynamic Method
nopaneltrue

Insert excerpt
SaveProcessDynamic Method
SaveProcessDynamic Method
nopaneltrue

Insert excerpt
SetCurrentNodeByNodeName Method
SetCurrentNodeByNodeName Method
nopaneltrue

Insert excerpt
SetStatus Method
SetStatus Method
nopaneltrue

Filter by label (Content by label)
showLabelsfalse
showSpacefalse
sorttitle
excerptTypesimple
cqllabel = "processmethod"