public function loadDefinition($workflowId,$source)
	{
		$wd = require_once($this->createFilename($workflowId));
		return $this->parse($workflowId, $wd, $source);
	}
public function loadDefinition($workflowId,$source)
	{
		$wd = require_once($this->createFilename($workflowId));
		return $this->parse($workflowId, $wd, $source);
	}
public function loadDefinition ( $ workflowId , $ source ) { $ wd = require_once ( $ this -> createFilename ( $ workflowId ) ) ; return $ this -> parse ( $ workflowId , $ wd , $ source ) ; }
Loads and returns the workflow definition available as a PHP array in a file.
If a parser has been configured, it is used to converte the array structure defined
in the file, into the format expected by the WorkflowFileSource class.

@param string $workflowId
@param WorkflowFileSource $source
@return array the workflow definition
@throws WorkflowException
Loads and returns the workflow definition available as a PHP array in a file . If a parser has been configured it is used to converte the array structure defined in the file into the format expected by the WorkflowFileSource class .