From c62a76d121567e6265e2bf3ae1b817be78f4f397 Mon Sep 17 00:00:00 2001 From: Elizabeth Esswein Date: Wed, 17 Jul 2024 13:24:52 -0400 Subject: [PATCH] make sure spiff attributes are serialized on loop tasks --- SpiffWorkflow/spiff/serializer/config.py | 1 + SpiffWorkflow/spiff/serializer/task_spec.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/SpiffWorkflow/spiff/serializer/config.py b/SpiffWorkflow/spiff/serializer/config.py index cf28fe08..365254b6 100644 --- a/SpiffWorkflow/spiff/serializer/config.py +++ b/SpiffWorkflow/spiff/serializer/config.py @@ -109,6 +109,7 @@ SPIFF_CONFIG[TransactionSubprocess] = SubWorkflowTaskConverter SPIFF_CONFIG[ParallelMultiInstanceTask] = SpiffMultiInstanceConverter SPIFF_CONFIG[SequentialMultiInstanceTask] = SpiffMultiInstanceConverter +SPIFF_CONFIG[StandardLoopTask] = StandardLoopTaskConverter SPIFF_CONFIG[MessageEventDefinition] = MessageEventDefinitionConverter SPIFF_CONFIG[SignalEventDefinition] = ItemAwareEventDefinitionConverter SPIFF_CONFIG[ErrorEventDefinition] = ErrorEscalationEventDefinitionConverter diff --git a/SpiffWorkflow/spiff/serializer/task_spec.py b/SpiffWorkflow/spiff/serializer/task_spec.py index 30aa4f4b..bef19d19 100644 --- a/SpiffWorkflow/spiff/serializer/task_spec.py +++ b/SpiffWorkflow/spiff/serializer/task_spec.py @@ -106,7 +106,7 @@ def from_dict(self, dct): class StandardLoopTaskConverter(SpiffBpmnTaskConverter): def to_dict(self, spec): - dct = self.get_default_attributes(spec) + dct = super().to_dict(spec) dct.update(self.get_standard_loop_attributes(spec)) return dct