GetActiveProcesses

Syntax

GetActiveProcessesResult GetActiveProcesses(string mon)

Parameters

mon. Repository connection moniker.

Description

The GetActiveProcesses operation gets information about the processes currently executed in repository.

Comments

To execute the operation, in the mon field specify repository connection moniker. The moniker can be obtained on executing the OpenMetabase operation.

The operation results in the collection of elements containing general information about processes started and currently being executed.

Example

Below is the example of getting information about executed processes. The request contains repository connection moniker. The response contains the list of executed processes.

SOAP request:

<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<GetActiveProcesses xmlns="http://www.fsight.ru/PP.SOM.Som">
  <mon xmlns=" ">CDIKMKCKEHJCGOAELMMPKEGKAJIPBMFELKNPPPKHHFAHIIHI!M</mon>
  </GetActiveProcesses>
  </s:Body>
  </s:Envelope>

SOAP response:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
<GetActiveProcessesResult xmlns="http://www.fsight.ru/PP.SOM.Som" xmlns:q1="http://www.fsight.ru/PP.SOM.Som" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<list xmlns=" ">
<it>
  <key>118114</key>
  <name>L2. Creating an Insurance Expenses Budget</name>
  </it>
<it>
  <key>118088</key>
  <name>Test copy</name>
  </it>
<it>
  <key>117931</key>
  <name>Master</name>
  </it>
<it>
  <key>117851</key>
  <name>Process with subprocess</name>
  </it>
  </list>
  </GetActiveProcessesResult>
  </soapenv:Body>
  </soapenv:Envelope>

JSON request:

{
 "GetActiveProcesses" :
  {
   "mon" : "CDIKMKCKEHJCGOAELMMPKEGKAJIPBMFELKNPPPKHHFAHIIHI!M"
  }
}

JSON response:

{
 "GetActiveProcessesResult" :
  {
   "list" :
    {
     "it" :
      [
        {
         "key" : "118114",
         "name" : "L2. Creating an Insurance Expenses Budget"
        },
        {
         "key" : "118088",
         "name" : "Test copy"
        },
        {
         "key" : "117931",
         "name" : "Master"
        },
        {
         "key" : "117851",
         "name" : "Process with subprocess"
        }
      ]
    }
  }
}
public static GetActiveProcessesResult GetActiveProcesses(string moniker)
{
var somClient = new SomPortTypeClient(); // Proxy object for operation execution
// Operation execution parameters
var tGet = new GetActiveProcesses()
{
mon = moniker
};
// Get list of executed processes
var result = somClient.GetActiveProcesses(tGet);
return result;
}

See also:

Working with Processes