GetBpmGatewayResult GetBpmGateway(BpmProcessId tBpmProcess, GetBpmGatewayArg tArg)
tBpmProcess. Moniker of opened process instance.
tArg. Operation execution parameters.
The GetBpmGateway operation gets settings of the gateway created within a stage.
To execute the operation, in the tBpmProcess field specify moniker of opened process instance, and in the tArg.stageId field specify stage identifier. The moniker can be obtained after executing the OpenBpmProcess operation.
The operation results in the type of gateway and list of stage groups with conditions.
Below is the example of getting gateway settings. The request contains moniker of opened process instance and gateway index. The response contains the obtained settings.
{
"GetBpmGateway" :
{
"tBpmProcess" :
{
"id" : "PCMPFKDANKDAGOAEHGGCMAILKEKKFDIEKJCJBILJBEBFPLMF!M!S!BPGFFNKBEANKDAGOAEDJNBGLCJMDPBKHHEIKDLOLJJHKCKAIFG"
},
"tArg" :
{
"stageId" : "0"
}
}
}
{
"GetBpmGatewayResult" :
{
"gateways" :
{
"it" :
{
"gtwType" : "No_gateway",
"isCondActive" : "0",
"stageId" : "338080*0"
}
}
}
}
public static GetBpmGatewayResult GetBpmGateway(string moniker, int stage)
{
var somClient = new SomPortTypeClient(); // Proxy object for operation execution
// Operation execution parameters
var tGet = new GetBpmGateway()
{
// Create object moniker
tBpmProcess = new BpmProcessId() { id = moniker },
tArg = new GetBpmGatewayArg() { stageId = stage }
};
// Get information about gateway
var result = somClient.GetBpmGateway(tGet);
return result;
}
See also: