Squashed 'SpiffWorkflow/' changes from a094adad8..bb9832928

bb9832928 Merge pull request #257 from sartography/bugfix/add-spiff-scripts-to-service-task
ecd9ecb84 parse spiff script extensions in service tasks

git-subtree-dir: SpiffWorkflow
git-subtree-split: bb9832928b47055d2d51e1f5711f1abc4139f7d8
This commit is contained in:
burnettk 2022-10-26 13:40:35 -04:00
parent dfd3eee5e9
commit 8c7fc36ec3
1 changed files with 5 additions and 1 deletions

View File

@ -142,12 +142,16 @@ class ServiceTaskParser(SpiffTaskParser):
def create_task(self):
extensions = self.parse_extensions()
operator = extensions.get('serviceTaskOperator')
prescript = extensions.get('preScript')
postscript = extensions.get('postScript')
return self.spec_class(
self.spec, self.get_task_spec_name(),
operator['name'], operator['parameters'],
operator['resultVariable'],
description=self.node.get('name', None),
lane=self.lane, position=self.position)
lane=self.lane, position=self.position,
prescript=prescript,
postscript=postscript)
class BusinessRuleTaskParser(SpiffTaskParser):