Versions Compared

Key

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


Excerpt

Inserts a new Process into the process database.


Code Block
public int InsertProcess(Process process);

Classes: Database


Parameters

Process process

Process to insert into the database.

Returns

int

Id of inserted process.


Example

The following example demonstrates retrieving a process from the database, and inserting what will become a copy of that process.

Code Block
var process = Databse.GetProcessById(1);
Database.InsertProcess(process);

Remarks

The Id property of the Process passed to this function is disregarded when inserting, and a new Id is generated for the new process. 

If a process is retrieved with existing document information, the new process will contain a copy of that document associated with the new process.