Check whether the required properties are existing in the bundle workflow. If no workflow type specified, return None, otherwise, return a list of required but missing properties.
(self)
| 230 | self.properties[name] = {BundleProperty.DESC: desc, BundleProperty.REQUIRED: required} |
| 231 | |
| 232 | def check_properties(self) -> list[str] | None: |
| 233 | """ |
| 234 | Check whether the required properties are existing in the bundle workflow. |
| 235 | If no workflow type specified, return None, otherwise, return a list of required but missing properties. |
| 236 | |
| 237 | """ |
| 238 | if self.properties is None: |
| 239 | return None |
| 240 | return [n for n, p in self.properties.items() if p.get(BundleProperty.REQUIRED, False) and not hasattr(self, n)] |
| 241 | |
| 242 | |
| 243 | class PythonicWorkflow(BundleWorkflow): |