src/org/ohmage/service/CampaignServices.java
public void verifyCampaignIsRunning(final String campaignId) 
			throws ServiceException {
		
		try {
			if(! Campaign.RunningState.RUNNING.equals(
					campaignQueries.getCampaignRunningState(campaignId))) {
				throw new ServiceException(
						ErrorCode.CAMPAIGN_INVALID_RUNNING_STATE, 
						"The campaign is not running.");
			}
		}
		catch(DataAccessException e) {
			throw new ServiceException(e);
		}
	}
/**
	 * Verifies that the campaign is running.
	 * 
	 * @param campaignId The campaign's unique identifier.
	 * 
	 * @throws ServiceException Thrown if the campaign is not running or if 
	 * 							there is an error.
	 */
Verifies that the campaign is running.

@param campaignId The campaign's unique identifier.

@throws ServiceException Thrown if the campaign is not running or if
there is an error.
Verifies that the campaign is running . @param campaignId The campaign ' s unique identifier . @throws ServiceException Thrown if the campaign is not running or if there is an error .
public void verifyCampaignIsRunning(final String campaignId) 
			throws ServiceException {
		try {
			if(! Campaign.RunningState.RUNNING.equals(
					campaignQueries.getCampaignRunningState(campaignId))) {
				throw new ServiceException(
						ErrorCode.CAMPAIGN_INVALID_RUNNING_STATE, 
						"The campaign is not running.");
			}
		}
		catch(DataAccessException e) {
			throw new ServiceException(e);
		}
	}
public void verifyCampaignIsRunning ( final String campaignId ) throws ServiceException { try { if ( ! Campaign . RunningState . RUNNING . equals ( campaignQueries . getCampaignRunningState ( campaignId ) ) ) { throw new ServiceException ( ErrorCode . CAMPAIGN_INVALID_RUNNING_STATE , "The campaign is not running." ) ; } } catch ( DataAccessException e ) { throw new ServiceException ( e ) ; } }
Verifies that the campaign is running.
Verifies that the campaign is running .