private function validateJsonConditionFormat(stdClass $json) { if (!isset($json->condition)) { throw new Tracker_Workflow_Trigger_Exception_AddRuleJsonFormatException('condition is missing'); } $valid_condition = new Valid_WhiteList('condition', array(Tracker_Workflow_Trigger_RulesBuilderData::CONDITION_ALL_OFF, Tracker_Workflow_Trigger_RulesBuilderData::CONDITION_AT_LEAST_ONE)); $valid_condition->required(); $valid_condition->disableFeedback(); if (!$valid_condition->validate($json->condition)) { throw new Tracker_Workflow_Trigger_Exception_TriggerInvalidConditionException(); } }