Enable ControllerExecutionBB for service scope
[so.git] / bpmn / so-bpmn-tasks / src / main / java / org / onap / so / bpmn / infrastructure / decisionpoint / impl / AbstractControllerExecution.java
index f3b767a..1da9ad5 100644 (file)
@@ -156,6 +156,16 @@ public abstract class AbstractControllerExecution<T> {
         return ("pnf").equalsIgnoreCase(controllerScope);
     }
 
+    /**
+     * Check whether the controller scope is SERVICE
+     *
+     * @param controllerScope controller scope, e.g, pnf, vnf, vfModule, service
+     * @return true if the controller scope is service, else return false
+     */
+    protected boolean isServiceResourceScope(final String controllerScope) {
+        return "service".equalsIgnoreCase(controllerScope);
+    }
+
     /**
      * Check whether the controller scope is VNF resource related.
      *