MCPcopy
hub / github.com/sartography/SpiffWorkflow / assign

Method assign

SpiffWorkflow/operators.py:148–154  ·  view source on GitHub ↗
(self, from_obj, to_obj)

Source from the content-addressed store, hash-verified

146 self.right = right
147
148 def assign(self, from_obj, to_obj):
149 # Fetch the value of the right expression.
150 if self.right is not None:
151 right = self.right
152 else:
153 right = from_obj.get_data(self.right_attribute)
154 to_obj.set_data(**{str(self.left_attribute): right})
155
156 def serialize(self, serializer):
157 """

Callers 4

_on_readyMethod · 0.80
_runMethod · 0.80
_run_hookMethod · 0.80

Calls 2

get_dataMethod · 0.45
set_dataMethod · 0.45

Tested by

no test coverage detected