BpmStep GetBpmStep(BpmProcessId tBpmProcess, BpmStepArg tBpmStepArg)
tBpmProcess. Moniker of opened process.
tBpmStepArg. Operation execution parameters.
The GetBpmStep operation gets process step settings.
To execute the operation, in the tBpmProcess field specify moniker of opened process, and in the tBpmStepArg field specify get settings parameters. The moniker can be obtained after executing the OpenBpmProcess operation. In the tBpmStepArg.bindOpt.optType field specify the settings that should be obtained. In the tBpmStepArg.guid field specify step's unique identifier. The unique identifier can be obtained in execution results of the GetBpmWorkspace operation. Use the tBpmStepArg.objBind, tBpmStepArg.stepType fields to get settings of links with process parameters.
The operation results in the obtained step settings.
Below is the example of getting basic step settings. The request contains moniker of opened process and step unique identifier. The response contains the obtained settings.
{
"GetBpmStep" :
{
"tBpmProcess" :
{
"id" : "HCCHPFCEOKKEGOAEIEHCIOKNOCLDDHIEFIHLKFNHGNCKFAMP!M!S!BPKGCGEJCEOKKEGOAEJBOMCNNAIOMLLLCEELEHEIIOADLCIINK"
},
"tBpmStepArg" :
{
"guid" : "{354F963A-8195-461E-BC49-CC14F1E64F92}",
"bindOpt" :
{
"optType" : "Base"
}
}
}
}
{
"GetBpmStepResult" :
{
"isEnabled" : "0",
"isValid" : "1",
"name" : "New step name",
"type" : "ManualTask",
"index" : "1",
"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" : "0"
}
}
public static BpmStep GetBpmStep(string moniker, string stepGUID, BpmStepOptionType optionType = BpmStepOptionType.Base)
{
var somClient = new SomPortTypeClient(); // Proxy object for operation execution
// Operation execution parameters
var tGet = new GetBpmStep()
{
tBpmProcess = new BpmProcessId() { id = moniker },
tBpmStepArg = new BpmStepArg()
{
bindOpt = new BpmBindingParamOption()
{
optType = optionType
},
guid = stepGUID
}
};
// Get information about step
var result = somClient.GetBpmStep(tGet);
return result;
}
See also: