OpenBpmProcessResult OpenBpmProcess(OdId tObject, OpenBpmProcessArg tArg)
tObject. Moniker of object that is a process.
tArg. Operation execution parameters.
The OpenBpmProcess operation opens a process.
The operation gets access to process structure. To execute the operation, in the tObject field specify moniker if repository object that is a process. The moniker can be obtained on executing the GetObjects operation.
The operation results in the moniker of opened process.
Below is the example of process opening. The request contains moniker of repository object that is a process. The response contains moniker of opened process.
The C# example uses the FindObjectById function, which code is given in the Getting Object Description by Its Identifier example.
{
"OpenBpmProcess" :
{
"tObject" :
{
"id" : "HBBODBAFBDNAGOAEMMDKMLHCADEHCLGEKJHCKBIALPJCLPHF!M!338080"
},
"tArg" :
{
"args" :
{
"openForEdit" : "true"
}
}
}
}
{
"OpenBpmProcessResult" :
{
"id" :
{
"id" : "HBBODBAFBDNAGOAEMMDKMLHCADEHCLGEKJHCKBIALPJCLPHF!M!S!BPNDIADGAFBDNAGOAEHGKIOKHBHBJIJMIELINEGEDPGAGEIEAP"
}
}
}
public static OpenBpmProcessResult OpenBpmProcess(MbId mb, string bpmId)
{
var somClient = new SomPortTypeClient(); // Proxy object for operation execution
// Operation execution parameters
var tOpen = new OpenBpmProcess()
{
tArg = new OpenBpmProcessArg()
{
args = new BpmProcessOpenArgs()
{
openForEdit = true
}
},
// Create object moniker
tObject = new OdId() { id = mb.id + "!" + FindObjectById(mb, bpmId).k }
};
// Open process
var result = somClient.OpenBpmProcess(tOpen);
return result;
}
See also: