コード例 #1
0
ファイル: workflow.php プロジェクト: mrdeadmouse/u136006
 /**
  * Initializes the specified activity by calling its method Initialize.
  * 
  * @param CBPActivity $activity
  */
 public function InitializeActivity(CBPActivity $activity)
 {
     if ($activity == null) {
         throw new CBPArgumentNullException("activity");
     }
     if ($activity->executionStatus != CBPActivityExecutionStatus::Initialized) {
         throw new Exception("InvalidInitializingState");
     }
     $activity->Initialize();
 }