0","timesrc":"Interval","startDate":"2008-01-31T00:00:00","stopDate":"2008-02-01T00:00:00","durationDay":"0001","durationHour":"00","durationMin":"00","durationSec":"00","leaf":true,"nodeType":"condition"}' */ $paramsNode = $this->paramsData->getRequestNode()->getParamsNode(); //unmarshall time definition $this->unmarshallTimeDefinition($input); //unmarshall data mining output definition $outputsNode = $this->paramsData->getRequestNode()->getOutputsNode(); $dataMiningNode = $outputsNode->addNewOutput(RequestOutputTypeEnum::DATAMINING); $dataMiningNode->setTimeFormat(RequestOutputDataMiningTimeFormatEnum::ISO); $dataMiningNode->setFileFormat(RequestOutputDataMiningFileFormatEnum::XML); //parse expression $expressionInfo = $this->expressionParser->parse($input->expression); $paramId = "datamining_".md5($expressionInfo["expression"]); //create a derived param for the expression $this->paramManager->addProcessParam($paramId, $expressionInfo["expression"], $expressionInfo['params'], $input->sampling, $input->gap,$this->paramsData); //add derived param to output $paramsNode->addParam($paramId); $dataMiningNode->setParam($paramId); $resultFile = "result_".$this->requestID; $this->paramsData->addWaitingResult(DATAMINING_RESULT_FILE_KEY, $resultFile); $postProcessCmd = "mv timeTable_datamining_*.xml ".$resultFile.".xml"; $postProcessCmd .= " && "; $postProcessCmd .= "mv Gaps_timeTable_datamining_*.xml Gaps_".$resultFile.".xml"; $this->paramsData->setPostCmd($postProcessCmd); return $this->paramsData; } /* * @brief method to marshall the result of a data mining request */ protected function marshallResult($data) { return $this->commonMarshallResult($data,DATAMINING_RESULT_FILE_KEY); } } ?>