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
13 lines
395 B
Python
13 lines
395 B
Python
from SpiffWorkflow.specs import Simple
|
|
|
|
class NuclearStrike(Simple):
|
|
def _on_complete_hook(self, my_task):
|
|
print((self.my_variable, "sent!"))
|
|
|
|
def serialize(self, serializer):
|
|
return serializer.serialize_nuclear_strike(self)
|
|
|
|
@classmethod
|
|
def deserialize(self, serializer, wf_spec, s_state):
|
|
return serializer.deserialize_nuclear_strike(wf_spec, s_state)
|