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

Method has_state

SpiffWorkflow/task.py:136–145  ·  view source on GitHub ↗

Check the state of this task. Args: state (`TaskState`): the state to check Returns: bool: `True` is the task has the state or mask

(self, state)

Source from the content-addressed store, hash-verified

134 return depth
135
136 def has_state(self, state):
137 """Check the state of this task.
138
139 Args:
140 state (`TaskState`): the state to check
141
142 Returns:
143 bool: `True` is the task has the state or mask
144 """
145 return (self._state & state) != 0
146
147 def set_data(self, **kwargs):
148 """Defines the given attribute/value pairs in this task's data."""

Callers 15

_add_childMethod · 0.95
_readyMethod · 0.95
cancelMethod · 0.95
_sync_childrenMethod · 0.80
_drop_childrenMethod · 0.80
_predict_hookMethod · 0.80
_run_hookMethod · 0.80
_run_hookMethod · 0.80
task_infoMethod · 0.80
_update_hookMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected