From dec03a8f5b03c9fad82bb8632cebba6944972ce9 Mon Sep 17 00:00:00 2001
From: Tobias Reischmann <tobias.reischmann@wi.uni-muenster.de>
Date: Mon, 16 Dec 2019 17:57:22 +0100
Subject: [PATCH] Throw exception in process_waiting_course if called and not
 overridden

This changes the default of just proceeding a course. However, I can not
think of a scenario were this would make sense.
---
 step/lib.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/step/lib.php b/step/lib.php
index e9ee290..03018d9 100644
--- a/step/lib.php
+++ b/step/lib.php
@@ -64,7 +64,7 @@ abstract class libbase {
      * @return step_response
      */
     public function process_waiting_course($processid, $instanceid, $course) {
-        return step_response::proceed();
+        throw new \coding_exception("Processing of waiting courses is not supported for this workflow step.");
     }
 
     /**
-- 
GitLab