From 8c7fc36ec3c77021f37a7cbabe729c815b2d42d2 Mon Sep 17 00:00:00 2001 From: burnettk Date: Wed, 26 Oct 2022 13:40:35 -0400 Subject: [PATCH] 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 --- SpiffWorkflow/spiff/parser/task_spec.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/SpiffWorkflow/spiff/parser/task_spec.py b/SpiffWorkflow/spiff/parser/task_spec.py index f2e54dcd..42d81a9d 100644 --- a/SpiffWorkflow/spiff/parser/task_spec.py +++ b/SpiffWorkflow/spiff/parser/task_spec.py @@ -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):