Dunlop::WorkflowStepsInBatchFinished.define do
  the_final_states_are %w[rejected completed]

  #on_finishing_of :owner_service_window1_preparation do
  #  description "Send notification mail to WBA" do |workflow_instance_batch|
  #    KpnCoreDeliveryMailer.wba_notification(workflow_instance_batch.id, self.model_name.human).deliver_later
  #  end
  #end

  #on_finishing_of :contractor_service_window1_execution do
  #  description <<-DESCRIPTION
  #    Check ${attributes.owner_service_window2_preparation.migration_file_for_bvt_ready}
  #    for ${models.owner_service_window2_preparation} workflow steps in the batch
  #  DESCRIPTION
  #  action do |workflow_instance_batch|
  #    workflow_steps_in_batch_scope(:owner_service_window2_preparation).update_all migration_file_for_bvt_ready: true
  #  end

  #  description "Send an email to Core Delivery informing them of batch completion" do |workflow_instance_batch|
  #    KpnCoreDeliveryMailer.contractor_service_window1_handled_for_batch(workflow_instance_batch.id).deliver_later
  #  end

  #  description "Send an email to Schuuring informing them of batch completion" do |workflow_instance_batch|
  #    SchuuringMailer.workflow_instance_batch_workflow_step_finished(self.class.name, workflow_instance_batch.id).deliver_later
  #  end
  #end

end
