bool SetBpmProcessSettings(BpmProcessId tBpmProcess, BpmProcessSettings tBpmProcessSettings)
tBpmProcess. Moniker of opened process.
tBpmProcessSettings. Settings of parameters that should be applied for process.
The SetBpmProcessSettings operation changes process settings.
To execute the operation, in the tBpmProcess field specify opened process moniker, and in the tBpmProcessSettings field specify changed settings. The moniker can be obtained after executing the OpenBpmProcess operation. The process should be opened for edit.
The operation results in the logical True if the settings were changed successfully.
Below is the example of changing a list of parameters in process settings. The request contains moniker of opened process and settings of created parameter. The response contains whether the list of parameters is changed successfully.
{
"SetBpmProcessSettings" :
{
"tBpmProcess" :
{
"id" : "PCMPFKDANKDAGOAEHGGCMAILKEKKFDIEKJCJBILJBEBFPLMF!M!S!BPGFFNKBEANKDAGOAEDJNBGLCJMDPBKHHEIKDLOLJJHKCKAIFG"
},
"tBpmProcessSettings" :
{
"paramsSettings" :
{
"bpmProcessParams" :
{
"it" :
{
"dictKey" : "338159",
"dictName" : "Plan scenario"
}
}
}
}
}
}
{
"SetBpmProcessSettingsResult" : "1"
}
public static bool SetBpmProcessSettings(string moniker, BpmProcessParams[] bpmParams)
{
var somClient = new SomPortTypeClient(); // Proxy object for operation execution
// Operation execution parameters
var tSet = new SetBpmProcessSettings()
{
// Create object moniker
tBpmProcess = new BpmProcessId() { id = moniker },
// Parameters
tBpmProcessSettings = new BpmProcessSettings()
{
paramsSettings = new BpmProcessParamsSettings()
{
bpmProcessParams = bpmParams
}
}
};
// Change information about parameters
var result = somClient.SetBpmProcessSettings(tSet);
return result;
}
See also: