anchor.diff:  		basedOnWorkflow: undefined
   	});
   	viewModel.addWorkflowPopup.beforeAppearCallback = function() {
  -		viewModel.addWorkflowPopup.parameters.basedOnWorkflow = editedWorkflow;
  +		viewModel.addWorkflowPopup.parameters.basedOnWorkflow = $scope.editedWorkflow;
   	};
   	viewModel.addWorkflowPopup.afterDismissCallback = function() {
   		viewModel.addWorkflowPopup.parameters.workflowID = "";
  
positive.code: 			workflow: workflow
  		});
  		viewModel.workflowChainOfEditedDirectWorkflow = workflow.workflowChain(viewModel.workflows);
  		editedWorkflow = workflow;
  		viewModel.editedWorkflowIndex = 0;
  
  		viewModel.stepSelected(null);
  
negative.code: 	};
  
  	viewModel.addStepSelectedBeforeStep = function(step) {
  		$rootScope.$emit("AddStepController::showAddStepPopupWithInsertIndex", _.indexOf($scope.editedWorkflow.steps, step));
  	};
  
  	viewModel.addStepSelectedAtEnd = function(directWorkflowIndex, workflowIndex) {
  