CreateProcess() public method

Creates the process.
public CreateProcess ( string ProcessDescription, string ProcessSummary, int CreatedBy, int OwnedBy, int AtulProcessStatusID, int DeadLineOffset ) : long
ProcessDescription string The process description.
ProcessSummary string The process summary.
CreatedBy int The created by.
OwnedBy int The owned by.
AtulProcessStatusID int The atul process status ID.
DeadLineOffset int The dead line offset.
return long
Exemplo n.º 1
0
 public long CreateProcess(string ProcessDescription, string ProcessSummary, int CreatedBy, int OwnedBy, int AtulProcessStatusID, int DeadLineOffset)
 {
     long processId = 0;
     AtulBusinessLogic adb = new AtulBusinessLogic();
     Process p = adb.GetProcessBySummary(ProcessSummary);
     if (p == null)
     {
         processId = adb.CreateProcess(ProcessDescription, ProcessSummary, CreatedBy, OwnedBy, AtulProcessStatusID, DeadLineOffset);
     }
     else
     {
         throw new Exception("A Process with that name already exists.");
     }
     return processId;
 }