/** * 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(); }