'Set the node work progress state (number between 0 and 100).'

def setProgress(self, progress):

    if ((progress is None) or (progress < 0) or (not self.__processingState)):
        progress = (-1)
    progress = max(min(progress, 100), (-1))
    if (self.__progress != progress):
        self.__progress = progress
        self.shapeItem.setProgress(progress)
        self.__updateTitleText()
