UpdateProcess Method
Example
The following example demonstrates altering and updating a Process retrieved from the database.
var process = Database.GetProcessById(1);
process.Properties.SetSingleValue("Altered", "true");
Database.UpdateProcess(process);
Remarks
The process that is updated in the database is targeted by the Id property of the Process you pass to this method. Be aware that if you've changed the Id of the process using dynamic object manipulation, this method will not automatically update the process you returned from the database, but rather any process by the Id on the process passed.