public function testType()
 {
     $this->assertNull($this->workflowDefinition->getType());
     $value = Workflow::TYPE_ENTITY;
     $this->workflowDefinition->setType($value);
     $this->assertEquals($value, $this->workflowDefinition->getType());
 }
 /**
  * @param WorkflowDefinition $definition
  * @return $this
  */
 public function import(WorkflowDefinition $definition)
 {
     $this->setName($definition->getName())->setType($definition->getType())->setLabel($definition->getLabel())->setEnabled($definition->isEnabled())->setConfiguration($definition->getConfiguration())->setStartStep($definition->getStartStep())->setWorkflowDefinitionEntities($definition->getWorkflowDefinitionEntities());
     return $this;
 }