Web Service > Web Service Operations > Working with Processes > SetBpmStep
bool SetBpmStep(BpmProcessId tBpmProcess, BpmStepArg bpmStepArg)
tBpmProcess. Moniker of opened process.
bpmStepArg. Operation execution parameters.
The SetBpmStep operation changes process step settings.
To execute the operation, in the tBpmProcess field specify moniker of opened process, and in the tBpmStepArg field specify step parameters to be changed. The moniker can be obtained after executing the OpenBpmProcess operation.
The operation results in the logical True if step settings were changed successfully, or error message if some parameter was set incorrectly.
Below is the example of changing process step settings. The request contains moniker of opened process and step settings. The response contains whether settings were changed successfully.
{
"SetBpmStep" :
{
"tBpmProcess" :
{
"id" : "HCCHPFCEOKKEGOAEIEHCIOKNOCLDDHIEFIHLKFNHGNCKFAMP!M!S!BPKGCGEJCEOKKEGOAEJBOMCNNAIOMLLLCEELEHEIIOADLCIINK"
},
"tBpmStepArg" :
{
"isEnabled" : "false",
"name" : "New step name",
"guid" : "{354F963A-8195-461E-BC49-CC14F1E64F92}",
"descr" : "Step is temporarily excluded from calculation",
"roleId" : "PS-1-1",
"roleName" : "ADMIN",
"maxDur" :
{
"periodType" : "Day",
"amount" : "1"
},
"minDeadline" : "18:00",
"checkDeadline" : "false",
"bindOpt" :
{
"optType" : "Base"
}
}
}
}
{
"SetBpmStepResult" :
{
"validate" : "1"
}
}
public static BpmStepValidateResult SetBpmStep(string moniker, string stepGuid)
{
var somClient = new SomPortTypeClient(); // Proxy object for operation execution
// Operation execution parameters
var tSet = new SetBpmStep()
{
tBpmProcess = new BpmProcessId() { id = moniker },
tBpmStepArg = new BpmStepArg()
{
guid = stepGuid,
bindOpt = new BpmBindingParamOption()
{
optType = BpmStepOptionType.Base
},
checkDeadline = false,
name = "New step name",
descr = "Step is temporarily excluded from calculation",
isEnabled = false,
roleId = "PS-1-1",
roleName = "ADMIN",
maxDur = new BpmStepDuration()
{
amount = 1,
periodType = BDurationType.Day
},
minDeadline = "18:00"
}
};
// Change step settings
var result = somClient.SetBpmStep(tSet);
return result;
}
See also: