/**
  * Create a new Workflow config.
  * 
  * @param WorkflowDto $workflow
  * 
  * @return Workflow
  */
 public function create(WorkflowDto $workflow)
 {
     $resourceData = new Resource\ResourceData();
     $resourceData->setData($workflow->getArrayCopy());
     $id = $this->workflowRepository->create($resourceData);
     $workflow->setId($id->getValue());
     return $workflow;
 }