public function getWorkflow($id)
	{
		if ( ! array_key_exists($id, $this->_w) ) {

			$workflow = null;
			$def =  $this->getWorkflowDefinition($id);

			if ( $def != null ) {
				unset($def[self::KEY_NODES]);
				$def['id'] = $id;
				if ( isset($def[Workflow::PARAM_INITIAL_STATUS_ID])) {
					$ids = $this->parseStatusId($def[Workflow::PARAM_INITIAL_STATUS_ID], $id);
					$def[Workflow::PARAM_INITIAL_STATUS_ID] = implode(self::SEPARATOR_STATUS_NAME, $ids);
				} else {
					throw new WorkflowException('failed to load Workflow '.$id.' : missing initial status id');
				}
				$def['class'] = $this->getClassMapByType(self::TYPE_WORKFLOW);
				$def['source'] = $this;

				$workflow = Yii::createObject($def);
			}
			$this->_w[$id] = $workflow;
		}
		return $this->_w[$id];
	}
public function getWorkflow($id)
	{
		if ( ! array_key_exists($id, $this->_w) ) {

			$workflow = null;
			$def =  $this->getWorkflowDefinition($id);

			if ( $def != null ) {
				unset($def[self::KEY_NODES]);
				$def['id'] = $id;
				if ( isset($def[Workflow::PARAM_INITIAL_STATUS_ID])) {
					$ids = $this->parseStatusId($def[Workflow::PARAM_INITIAL_STATUS_ID], $id);
					$def[Workflow::PARAM_INITIAL_STATUS_ID] = implode(self::SEPARATOR_STATUS_NAME, $ids);
				} else {
					throw new WorkflowException('failed to load Workflow '.$id.' : missing initial status id');
				}
				$def['class'] = $this->getClassMapByType(self::TYPE_WORKFLOW);
				$def['source'] = $this;

				$workflow = Yii::createObject($def);
			}
			$this->_w[$id] = $workflow;
		}
		return $this->_w[$id];
	}
public function getWorkflow ( $ id ) { if ( ! array_key_exists ( $ id , $ this -> _w ) ) { $ workflow = null ; $ def = $ this -> getWorkflowDefinition ( $ id ) ; if ( $ def != null ) { unset ( $ def [ self :: KEY_NODES ] ) ; $ def [ 'id' ] = $ id ; if ( isset ( $ def [ Workflow :: PARAM_INITIAL_STATUS_ID ] ) ) { $ ids = $ this -> parseStatusId ( $ def [ Workflow :: PARAM_INITIAL_STATUS_ID ] , $ id ) ; $ def [ Workflow :: PARAM_INITIAL_STATUS_ID ] = implode ( self :: SEPARATOR_STATUS_NAME , $ ids ) ; } else { throw new WorkflowException ( 'failed to load Workflow ' . $ id . ' : missing initial status id' ) ; } $ def [ 'class' ] = $ this -> getClassMapByType ( self :: TYPE_WORKFLOW ) ; $ def [ 'source' ] = $ this ; $ workflow = Yii :: createObject ( $ def ) ; } $ this -> _w [ $ id ] = $ workflow ; } return $ this -> _w [ $ id ] ; }
Returns the Workflow instance whose id is passed as argument.

@return raoul2000\workflow\base\Workflow|null The workflow instance or NULL if no workflow could be found
@see IWorkflowSource::getTransition()
Returns the Workflow instance whose id is passed as argument .