Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


Excerpt

Updates an existing Process in the process database.


Code Block
public void UpdateProcess(Process process);

Classes: Database


Parameters

Process Process

Process to update in the database.


Example

The following example demonstrates altering and updating a Process retrieved from the database.

Code Block
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.