From 40072d3dcc1d0193bba1ea9432c13ac24857be55 Mon Sep 17 00:00:00 2001 From: "Muthuramalingam, Brinda Santh" Date: Wed, 27 Mar 2019 13:22:51 -0400 Subject: Improve function interfaces Change-Id: I24f45d39ac05491a4217101e00bcbf8d122e4e1a Issue-ID: CCSDK-1137 Signed-off-by: Muthuramalingam, Brinda Santh --- .../Scripts/python/SamplePythonComponentNode.py | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'components/model-catalog/blueprint-model/test-blueprint/capability_python') diff --git a/components/model-catalog/blueprint-model/test-blueprint/capability_python/Scripts/python/SamplePythonComponentNode.py b/components/model-catalog/blueprint-model/test-blueprint/capability_python/Scripts/python/SamplePythonComponentNode.py index 890481219..86c9ff141 100755 --- a/components/model-catalog/blueprint-model/test-blueprint/capability_python/Scripts/python/SamplePythonComponentNode.py +++ b/components/model-catalog/blueprint-model/test-blueprint/capability_python/Scripts/python/SamplePythonComponentNode.py @@ -1,18 +1,13 @@ -from abstract_blueprint_function import AbstractPythonComponentFunction +from org.onap.ccsdk.cds.blueprintsprocessor.functions.python.executor import JythonComponentFunction from blueprint_constants import * -class SamplePythonComponentNode(AbstractPythonComponentFunction): - - def __init__(self): - AbstractPythonComponentFunction.__init__(self) +class SamplePythonComponentNode(JythonComponentFunction): def process(self, execution_request): - AbstractPythonComponentFunction.process(self, execution_request) print "Processing calling..." + PROPERTY_BLUEPRINT_BASE_PATH return None def recover(self, runtime_exception, execution_request): - AbstractPythonComponentFunction.recover(self, runtime_exception, execution_request) print "Recovering calling..." + PROPERTY_BLUEPRINT_BASE_PATH return None -- cgit 1.2.3-korg