SaveBpmProcessResult SaveBpmProcess(BpmProcessId tBpmProcess, BpmProcessInfoArg tArg)
tBpmProcess. Moniker of opened process.
tArg. Operation execution parameters.
The SaveBpmProcess operation saves changes in a process.
To execute the operation, in the tBpmProcess field specify moniker of opened process, and in the tArg field specify updated information about process structure. The moniker can be obtained after executing the OpenBpmProcess operation. The process should be opened for edit.
The operation results in the updated process version.
Below is the example of saving changes in a process. The request contains moniker of opened process and stage and steps settings. The response contains whether changes were saved successfully.
{
"SaveBpmProcess" :
{
"tBpmProcess" :
{
"id" : "PCMPFKDANKDAGOAEHGGCMAILKEKKFDIEKJCJBILJBEBFPLMF!M!S!BPGFFNKBEANKDAGOAEDJNBGLCJMDPBKHHEIKDLOLJJHKCKAIFG"
},
"tArg" :
{
"name" : "Process",
"stages" :
{
"it" :
{
"stage" :
{
"name" : "Stage 1",
"index" : "0",
"guid" : "{D198A63E-B5BD-4791-88F3-3E60C9DE7A54}"
},
"gtwType" : "No_gateway",
"isCondActive" : "false",
"stGroups" :
{
"it" :
{
"stGroup" :
{
"index" : "0",
"guid" : "{322DDF61-B291-42CB-A075-53B7F4337743}"
},
"steps" :
{
"it" :
[
{
"isEnabled" : "true",
"name" : "Manual data entry",
"type" : "ManualTask",
"index" : "0",
"guid" : "{13F3BEEB-009D-4FF7-88CC-F3C41A025A99}",
"roleId" : "PS-1-144122",
"maxDur" :
{
"periodType" : "Day",
"amount" : "1"
}
},
{
"isEnabled" : "true",
"name" : "Approve changes",
"type" : "Approval",
"index" : "1",
"guid" : "{0CF6521D-F5DB-48EB-A310-3897914390A6}",
"roleId" : "PS-1-1",
"maxDur" :
{
"periodType" : "Day",
"amount" : "1"
},
"data" :
{
"writeAccess" : "false",
"frmKey" : "262317",
"authObjKey" : "317058"
}
}
]
},
"isDefaultFlow" : "false"
}
}
}
}
}
}
}
{
"SaveBpmProcessResult" :
{
"parid" : "1481"
}
}
public static SaveBpmProcessResult SaveBpmProcess(string moniker, string newName, BpmStageInfo[] stages)
{
var somClient = new SomPortTypeClient(); // Proxy object for operation execution
// Operation execution parameters
var tGet = new SaveBpmProcess()
{
// Create object moniker
tBpmProcess = new BpmProcessId() { id = moniker },
tArg = new BpmProcessInfoArg()
{
name = newName,
stages = stages
}
};
// Save changes
var result = somClient.SaveBpmProcess(tGet);
return result;
}
See also: