Skip to content

Commit

Permalink
make sure spiff attributes are serialized on loop tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
essweine committed Jul 17, 2024
1 parent c45ab5e commit c62a76d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions SpiffWorkflow/spiff/serializer/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion SpiffWorkflow/spiff/serializer/task_spec.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit c62a76d

Please sign in to comment.