Please rate how useful you found this document: 
Average: 2.3 (6 votes)

Process Functions

PMFProcessList()

PMFProcessList() returns a list of processes in the current workspace.

array PMFProcessList(void)

Parameters:

None.

Return Value:

An array of associative arrays that contain the unique ID and processes titles. The array has the following structure:

[0] array ( associative array ( [string guid] [string name] ) ) ...

Where:

  • string guid: The unique ID of a process.
  • string name: The process title.

Example:

@@ArrayProcesses = PMFProcessList();

PMFGetProcessUidByName()

PMFGetProcessUidByName() retrieves the UID of a process.

string PMFGetProcessUidByName(string processName)

Parameters:

  • string processName: The name of the process.

Return Value:

  • With parameter: returns the unique ID of the process name.
  • Without parameter: returns the unique ID of the current process.

Example without parameter:

@@UIDProcess = PMFGetProcessUidByName();

Example with parameter:

@@UIDProcess = PMFGetProcessUidByName("Purchase Process");