GetBpmMonitoringWorkspace

Syntax

GetBpmMonitoringWorkspaceResult GetBpmMonitoringWorkspace(BpmProcessId tBpmProcess, GetBpmMonitoringWorkspaceArg tArg)

Parameters

tBpmProcess. Moniker of opened process instance.

tArg. Operation execution parameters.

Description

The GetBpmMonitoringWorkspace operation gets information about process instance structure during its execution.

Comments

To execute the operation, in the tBpmProcess field specify moniker of opened process instance. The moniker can be obtained after executing the OpenBpmProcess operation. In the tArg.id field specify unique key of the started process instance. The key can be obtained in the list collection that is available after executing executing the GetProcessInstances operation.

The operation results in the process structure with information about status of execution of specific stages and steps.

Example

Below is the example of getting information about structure of executed process instance. The request contains moniker and unique key of executed process instance. The response contains the obtained information about process structure.

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">
<GetBpmMonitoringWorkspace xmlns="http://www.fsight.ru/PP.SOM.Som">
<tBpmProcess xmlns=" ">
  <id>CDIKMKCKEHJCGOAELMMPKEGKAJIPBMFELKNPPPKHHFAHIIHI!M!S!BPFGPGKNCKEHJCGOAEHJDEHIPJFHBPODGEKJCMFANHBFPHKIDC</id>
  </tBpmProcess>
<tArg xmlns=" ">
  <id>51021</id>
  </tArg>
  </GetBpmMonitoringWorkspace>
  </s:Body>
  </s:Envelope>

SOAP response:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
<GetBpmMonitoringWorkspaceResult 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">
<proc xmlns=" ">
  <name>Master</name>
<stages>
<it>
<stage>
  <name>Stage 1</name>
  <index>0</index>
  <guid>{3DFBCB4F-312F-44CE-A352-95A74266CB52}</guid>
  <id>117931*0</id>
<states>
  <it>2</it>
  <it>1024</it>
  </states>
  </stage>
  <gtwType>No_gateway</gtwType>
  <isCondActive>0</isCondActive>
<stGroups>
<it>
<stGroup>
  <index>0</index>
  <guid>{0DF09559-A6D6-439B-8DED-A2DD2A37A55B}</guid>
  </stGroup>
<steps>
<it>
  <isEnabled>1</isEnabled>
  <name>Manual action 1</name>
  <type>ManualTask</type>
  <index>0</index>
  <guid>{AAC9F54F-EBED-4106-8C77-9356E14A5241}</guid>
  <descr />
  <roleId>PS-1-1</roleId>
  <id>117931*0@0^0</id>
<states>
  <it>4</it>
  </states>
  </it>
<it>
  <isEnabled>1</isEnabled>
  <name>Subprocess call 1</name>
  <type>SubStart</type>
  <index>1</index>
  <guid>{7D079FAF-FC27-48B7-A537-D64C06E71177}</guid>
  <descr />
  <roleId>PS-1-1</roleId>
  <bindObjKey>117933</bindObjKey>
  <autoExec>0</autoExec>
  <id>117931*0@0^1</id>
<states>
  <it>2</it>
  <it>1024</it>
  </states>
<subproc>
  <procVer>2024-03-31T22:13:07.235</procVer>
  <rollbackType>FirstStep</rollbackType>
  </subproc>
  </it>
  </steps>
  <isDefaultFlow>0</isDefaultFlow>
  </it>
  </stGroups>
  </it>
  </stages>
  </proc>
  <instId xmlns=" ">{6EF312B6-180F-4671-B70E-7D1D26F0E0A7}</instId>
  </GetBpmMonitoringWorkspaceResult>
  </soapenv:Body>
  </soapenv:Envelope>

JSON request:

{
 "GetBpmMonitoringWorkspace" :
  {
   "tBpmProcess" :
    {
     "id" : "CDIKMKCKEHJCGOAELMMPKEGKAJIPBMFELKNPPPKHHFAHIIHI!M!S!BPFGPGKNCKEHJCGOAEHJDEHIPJFHBPODGEKJCMFANHBFPHKIDC"
    },
   "tArg" :
    {
     "id" : "51021"
    }
  }
}

JSON response:

{
 "GetBpmMonitoringWorkspaceResult" :
  {
   "proc" :
    {
     "name" : "Master",
     "stages" :
      {
       "it" :
        {
         "stage" :
          {
           "name" : "Stage 1",
           "index" : "0",
           "guid" : "{3DFBCB4F-312F-44CE-A352-95A74266CB52}",
           "id" : "117931*0",
           "states" :
            {
             "it" :
              [
                "2",
                "1024"
              ]
            }
          },
         "gtwType" : "No_gateway",
         "isCondActive" : "0",
         "stGroups" :
          {
           "it" :
            {
             "stGroup" :
              {
               "index" : "0",
               "guid" : "{0DF09559-A6D6-439B-8DED-A2DD2A37A55B}"
              },
             "steps" :
              {
               "it" :
                [
                  {
                   "isEnabled" : "1",
                   "name" : "Manual action 1",
                   "type" : "ManualTask",
                   "index" : "0",
                   "guid" : "{AAC9F54F-EBED-4106-8C77-9356E14A5241}",
                   "descr" : "",
                   "roleId" : "PS-1-1",
                   "id" : "117931*0@0^0",
                   "states" :
                    {
                     "it" : "4"
                    }
                  },
                  {
                   "isEnabled" : "1",
                   "name" : "Subprocess call 1",
                   "type" : "SubStart",
                   "index" : "1",
                   "guid" : "{7D079FAF-FC27-48B7-A537-D64C06E71177}",
                   "descr" : "",
                   "roleId" : "PS-1-1",
                   "bindObjKey" : "117933",
                   "autoExec" : "0",
                   "id" : "117931*0@0^1",
                   "states" :
                    {
                     "it" :
                      [
                        "2",
                        "1024"
                      ]
                    },
                   "subproc" :
                    {
                     "procVer" : "2024-03-31T22:13:07.235",
                     "rollbackType" : "FirstStep"
                    }
                  }
                ]
              },
             "isDefaultFlow" : "0"
            }
          }
        }
      }
    },
   "instId" : "{6EF312B6-180F-4671-B70E-7D1D26F0E0A7}"
  }
}
public static GetBpmMonitoringWorkspaceResult GetBpmMonitoringWorkspace(string moniker, uint instanceKey)
{
var somClient = new SomPortTypeClient(); // Proxy object for operation execution
// Operation execution parameters
var tGet = new GetBpmMonitoringWorkspace()
{
tBpmProcess = new BpmProcessId() { id = moniker },
tArg = new GetBpmMonitoringWorkspaceArg()
{
id = instanceKey
}
};
// Get information about structure of executed process instance
var result = somClient.GetBpmMonitoringWorkspace(tGet);
return result;
}

See also:

Working with Processes