mirror of
https://github.com/status-im/spiff-arena.git
synced 2025-01-09 17:55:48 +00:00
0892db6fa7
git-subtree-dir: SpiffWorkflow git-subtree-split: 63db3e45947ec66b8d0efc2c74064004f8ff482c
12 lines
434 B
Python
12 lines
434 B
Python
from SpiffWorkflow.serializer.json import JSONSerializer
|
|
from strike import NuclearStrike
|
|
|
|
class NuclearSerializer(JSONSerializer):
|
|
def serialize_nuclear_strike(self, task_spec):
|
|
return self.serialize_task_spec(task_spec)
|
|
|
|
def deserialize_nuclear_strike(self, wf_spec, s_state):
|
|
spec = NuclearStrike(wf_spec, s_state['name'])
|
|
self.deserialize_task_spec(wf_spec, s_state, spec=spec)
|
|
return spec
|