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

Method get_data

SpiffWorkflow/task.py:151–162  ·  view source on GitHub ↗

Returns the value of the data field with the given name, or the given default value if the data field does not exist. Args: name (str): the dictionary key to return default (obj): a default value to return if the key does not exist Returns:

(self, name, default=None)

Source from the content-addressed store, hash-verified

149 self.data.update(kwargs)
150
151 def get_data(self, name, default=None):
152 """Returns the value of the data field with the given name, or the given
153 default value if the data field does not exist.
154
155 Args:
156 name (str): the dictionary key to return
157 default (obj): a default value to return if the key does not exist
158
159 Returns:
160 the value of the key, or the default
161 """
162 return self.data.get(name, default)
163
164 def reset_branch(self, data):
165 """Removes all descendendants of this task and set this task to be runnable.

Callers 11

assignMethod · 0.45
valueofFunction · 0.45
test_run_workflowMethod · 0.45
on_ready_cbFunction · 0.45
testDeserializationMethod · 0.45
testSetDataMethod · 0.45
testRunThroughHappyMethod · 0.45
testRunThroughOverdueMethod · 0.45

Calls 1

getMethod · 0.45

Tested by 8

test_run_workflowMethod · 0.36
testDeserializationMethod · 0.36
testSetDataMethod · 0.36
testRunThroughHappyMethod · 0.36
testRunThroughOverdueMethod · 0.36