bool SetBpmStep(BpmProcessId tBpmProcess, BpmStepArg bpmStepArg, BpmStep bpmStep)
tBpmProcess. Moniker of opened process.
bpmStepArg. Operation execution parameters.
bpmStep. Updated step settings.
The SetBpmStep operation changes process step settings.
To execute the operation, in the tBpmProcess field specify moniker of opened process, and in the bpmStepArg.bindOpt.bindOpt field determine which settings will be changed, and in the bpmStep field determine step settings.
The moniker can be obtained after executing the OpenBpmProcess operation.
The operation results in the logical True if step settings were changed successfully.
Below is the example of changing process step settings. The request contains moniker of opened process, indicates whether basic step settings are changed, and the step with updated settings. The response contains whether settings were changed successfully.
{
"SetBpmStep" :
{
"tBpmProcess" :
{
"id" : "KHOGMNEDEFLBGOAEJFBOFFKKJNCFJAMECINHGPIPPPNCJNEN!M!S!BPDJNHDPEDEFLBGOAEEGHJBBCMPMFHFFEELLEMDGGNHJGDMOKL"
},
"bpmStepArg" :
{
"bindOpt" :
{
"optType" : "Base"
}
},
"bpmStep" :
{
"isEnabled" : "false",
"isValid" : "true",
"name" : "New step name",
"type" : "Approval",
"index" : "1",
"guid" : "{0CF6521D-F5DB-48EB-A310-3897914390A6}",
"descr" : "Step is temporarily excluded from calculation",
"roleId" : "PS-1-1",
"maxDur" :
{
"periodType" : "Day",
"amount" : "1"
},
"minDeadline" : "18:00",
"bindObjKey" : "340033",
"checkDeadline" : "true",
"data" :
{
"writeAccess" : "false",
"authObjKey" : "317058"
}
}
}
}
{
"SetBpmStepResult" : "1"
}
public static bool SetBpmStep(string moniker, BpmStepOptionType optionType, BpmStep newStep)
{
var somClient = new SomPortTypeClient(); // Proxy object for operation execution
// Operation execution parameters
var tSet = new SetBpmStep()
{
tBpmProcess = new BpmProcessId() { id = moniker },
bpmStepArg = new BpmStepArg()
{
bindOpt = new BpmBindingParamOption()
{
optType = optionType
},
},
bpmStep = newStep
};
// Change step settings
var result = somClient.SetBpmStep(tSet);
return result;
}
See also: