Merge branch 'cr-connect-92-scripting-enhancements' of github.com:sartography/cr-connect-workflow into cr-connect-92-scripting-enhancements

This commit is contained in:
Dan Funk 2020-07-20 11:40:10 -04:00
commit b85869905b
1 changed files with 3 additions and 0 deletions

View File

@ -23,6 +23,7 @@ from crc.models.file import FileDataModel, FileModel, FileType
from crc.models.workflow import WorkflowStatus, WorkflowModel, WorkflowSpecDependencyFile from crc.models.workflow import WorkflowStatus, WorkflowModel, WorkflowSpecDependencyFile
from crc.scripts.script import Script from crc.scripts.script import Script
from crc.services.file_service import FileService from crc.services.file_service import FileService
from crc import app
class CustomBpmnScriptEngine(BpmnScriptEngine): class CustomBpmnScriptEngine(BpmnScriptEngine):
@ -48,6 +49,8 @@ class CustomBpmnScriptEngine(BpmnScriptEngine):
except SyntaxError as e: except SyntaxError as e:
failedOnce = True failedOnce = True
prevError = script prevError = script
app.logger.warning('We experienced a syntax error, but we are going to try the old method on '
'"%s"'%script)
else: else:
commands = commands[1:] commands = commands[1:]