Web Service > Web Service Operations > Working with Processes > SetBpmStage
bool SetBpmStage(BpmProcessId tBpmProcess, BpmStageArg tBpmStepArg)
tBpmProcess. Moniker of opened process.
tBpmStepArg. Operation execution parameters.
The SetBpmStage operation changes process stage settings.
To execute the operation, in the tBpmProcess field specify moniker of opened process, and in the bpmStepArg field specify stage settings. The moniker can be obtained after executing the OpenBpmProcess operation.
The operation results in the logical True if stage settings were changed successfully.
Below is the example of changing process stage settings. The request contains moniker of opened process, GUID, and new name that will be set for the stage. The response contains whether style stage settings were changed successfully.
{
"SetBpmStage" :
{
"tBpmProcess" :
{
"id" : "COAOPGKGCJKEGOAEIHPPEJNABOOGNDGENKOKNINMLFLJFBMK!M!S!BPHLNJFALGCJKEGOAEJPJLLKGPHKELIFIECLCHAGEBCDNFMELP"
},
"tBpmStepArg" :
{
"guid" : "{94C3E46B-1BBC-4FFF-9600-49C6B5D344D7}",
"name" : "Additional stage"
}
}
}
{
"SetBpmStageResult" : "1"
}
public static bool SetBpmStage(string moniker, string stageGuid, string newName)
{
var somClient = new SomPortTypeClient(); // Proxy object for operation execution
// Operation execution parameters
var tSet = new SetBpmStage()
{
// Create object moniker
tBpmProcess = new BpmProcessId() { id = moniker },
tBpmStepArg = new BpmStageArg()
{
guid = stageGuid,
name = newName
}
};
// Change stage settings
var result = somClient.SetBpmStage(tSet);
return result;
}
See also: