SetSubprocessGroupFilter

Syntax

SetSubprocessGroupFilterResult SetSubprocessGroupFilter(BpmProcessId tBpmProcess, SetSubprocessGroupFilterArg tArg)

Parameters

tBpmProcess. Moniker of opened process instance.

tArg. Operation execution parameters.

Description

The SetSubprocessGroupFilter operation changes filtering settings for subprocess group call.

Comments

To execute the operation, in the tBpmProcess field specify moniker of opened process instance, and in the tArg field specify change settings parameters. The moniker can be obtained after executing the OpenBpmProcess operation. In the tArg.stpGuid field specify subprocess unique identifier. The unique identifier can be obtained in execution results of the GetBpmWorkspace operation.

The operation does not return any result.

Example

Below is the example of changing filtering settings for subprocess group call. The request contains moniker of opened process instance, subprocess GUID, and set filter condition with all required settings.

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">
<SetSubprocessGroupFilter xmlns="http://www.fsight.ru/PP.SOM.Som">
<tBpmProcess xmlns="">
  <id>CEMMBBKFAJIBGOAEOGKCAHICOFFKCBEEHJBOLHCLMPGDHOEL!M!S!BPBHCLFDKFAJIBGOAENOBOEPJFLMKFGIGEFKDDHPNEPKGKBDIO</id>
  </tBpmProcess>
<tArg xmlns="">
  <stpGuid>{E0EC9336-71A5-4B91-81C5-BEC66BB5936A}</stpGuid>
<cond>
<it>
  <type>RelationSetNumber</type>
  <exprRel>Or</exprRel>
<expr>
<paramInfo>
  <paramId>OBJ338159_0</paramId>
  <paramKey>338159</paramKey>
  </paramInfo>
  <exprType>RelationSetNumber</exprType>
  <operation>Equal</operation>
<rDimS>
  <mnk>CEMMBBKFAJIBGOAEOGKCAHICOFFKCBEEHJBOLHCLMPGDHOEL!M!S!SOHDJEEKFAJIBGOAELIELLHAOPAOELANENKGDOKFHCGLNLBOL</mnk>
  </rDimS>
  </expr>
  </it>
  </cond>
  </tArg>
  </SetSubprocessGroupFilter>
  </s:Body>
  </s:Envelope>

SOAP response:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
<SetSubprocessGroupFilterResult 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">
  <tmp xmlns="" />
  </SetSubprocessGroupFilterResult>
  </soapenv:Body>
  </soapenv:Envelope>

JSON request:

{
"SetSubprocessGroupFilter" :
{
"tBpmProcess" :
{
"id" : "CEMMBBKFAJIBGOAEOGKCAHICOFFKCBEEHJBOLHCLMPGDHOEL!M!S!BPBHCLFDKFAJIBGOAENOBOEPJFLMKFGIGEFKDDHPNEPKGKBDIO"
},
"tArg" :
{
"stpGuid" : "{E0EC9336-71A5-4B91-81C5-BEC66BB5936A}",
"cond" :
{
"it" :
{
"type" : "RelationSetNumber",
"exprRel" : "Or",
"expr" :
{
"paramInfo" :
{
"paramId" : "OBJ338159_0",
"paramKey" : "338159"
},
"exprType" : "RelationSetNumber",
"operation" : "Equal",
"rDimS" :
{
"mnk" : "CEMMBBKFAJIBGOAEOGKCAHICOFFKCBEEHJBOLHCLMPGDHOEL!M!S!SOHDJEEKFAJIBGOAELIELLHAOPAOELANENKGDOKFHCGLNLBOL"
}
}
}
}
}
}
}

JSON response:

{
"SetSubprocessGroupFilterResult" :
{
"tmp" : ""
}
}
public static SetSubprocessGroupFilterResult SetSubprocessGroupFilter(string moniker, string stepGUID, string procParamId, int procParamKey, string dimSel)
{
var somClient = new SomPortTypeClient(); // Proxy object for operation execution
// Operation execution parameters
var tSet = new SetSubprocessGroupFilter()
{
// Create object moniker
tBpmProcess = new BpmProcessId() { id = moniker },
tArg = new SetSubprocessGroupFilterArg()
{
stpGuid = stepGUID,
cond = new BpmCondition[1]
{
new BpmCondition()
{
type = EExpressionLogicalTypeCe.RelationSetNumber,
exprRel = BpmConditionsRelation.Or,
expr = new BpmGatewayLogicalExpression()
{
paramInfo = new BpmGatewayParamInfo()
{
paramId = procParamId,
paramKey = procParamKey
},
exprType = EExpressionLogicalTypeCe.RelationSetNumber,
operation = EOperationComparCe.Equal,
rDimS = new BpmDimSelection()
{
mnk = dimSel
}
}
}
}
}
};
// Change filtering settings for subprocess group call
var result = somClient.SetSubprocessGroupFilter(tSet);
return result;
}

See also:

Working with Processes