aboutsummaryrefslogtreecommitdiffstats
path: root/components/model-catalog/blueprint-model/test-blueprint/capability_python/Scripts/python/SamplePythonComponentNode.py
blob: 89048121911b3a6f0b7bf0469e8d6faac602ef67 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
from abstract_blueprint_function import AbstractPythonComponentFunction
from blueprint_constants import *


class SamplePythonComponentNode(AbstractPythonComponentFunction):

    def __init__(self):
        AbstractPythonComponentFunction.__init__(self)

    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