From 80cb923b14d56ecc04dc46c00ade3233d65a4dc2 Mon Sep 17 00:00:00 2001 From: jasquat Date: Thu, 5 Jan 2023 17:35:20 -0500 Subject: [PATCH] Squashed 'SpiffWorkflow/' changes from 5664815a2..4195453a4 4195453a4 Merge commit 'c3c56ceaae3dcfad5e7c24bdec8e5dee9c09607c' 0629dcb9a added fix to SpiffWorkflow to deepcopy operation params before evaluating them w/ burnettk git-subtree-dir: SpiffWorkflow git-subtree-split: 4195453a46638f23e87c3ffdb038717c2d8abd00 --- tests/SpiffWorkflow/spiff/ServiceTaskTest.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tests/SpiffWorkflow/spiff/ServiceTaskTest.py b/tests/SpiffWorkflow/spiff/ServiceTaskTest.py index 9417b42e..1d3035b3 100644 --- a/tests/SpiffWorkflow/spiff/ServiceTaskTest.py +++ b/tests/SpiffWorkflow/spiff/ServiceTaskTest.py @@ -60,6 +60,15 @@ class ServiceTaskTest(BaseTestCase): self.workflow.do_engine_steps() self._assert_service_tasks() + def testRunSameServiceTaskActivityMultipleTimes(self): + self.workflow.do_engine_steps() + service_task_activity = [t for t in self.workflow.get_tasks() if + t.task_spec.name == 'Activity-1inxqgx'][0] + + service_task_activity.task_spec._execute(service_task_activity) + service_task_activity.task_spec._execute(service_task_activity) + service_task_activity.task_spec._execute(service_task_activity) + def testRunThroughSaveRestore(self): self.save_restore() # Engine isn't preserved through save/restore, so we have to reset it.