Source: factory.core/ObjBOP.py
Business Operating Procedure generator.
Creates ISO 9001 compliant BOP documents from Axion
platform definitions. Collects workflows, webhooks,
services, reports, decision trees, and feature stores
...
| Method | Signature | Description |
|---|---|---|
| load | load(bop_code: str, package: str = '') -> bool |
Load a BOP definition from the database. |
| save | save() -> bool |
Save the current BOP definition to the database. |
| add_revision | add_revision(author: str, description: str, status: str = 'DRAFT') -> str |
Add a revision entry to the BOP history. |
| collect_workflow_data | collect_workflow_data(workflow_code: str) -> dict[str, Any] |
Collect header and nodes for a workflow. |
| collect_webhook_data | collect_webhook_data(webhook_code: str) -> dict[str, Any] |
Collect details for a webhook. |
| collect_report_data | collect_report_data(report_code: str) -> dict[str, Any] |
Collect details for a report. |
| generate_workflow_diagram | generate_workflow_diagram(workflow_code: str) -> str |
Generate a Mermaid PNG for a workflow. |
| generate_ai_purpose | generate_ai_purpose() -> str |
Generate AI-written Purpose and Scope section. |
| generate_ai_workflow_description | generate_ai_workflow_description(workflow_code: str, nodes: list[dict[str, Any]]) -> str |
Generate AI-written workflow step description. |
| expand_workflow_description | expand_workflow_description(workflow_code: str, description: str, nodes: list[dict[str, Any]]) -> str |
Expand a short workflow description via AI. |
| generate_raci | generate_raci() -> list[dict[str, str]] |
Generate a RACI matrix via AI. |
| generate_ai_review | generate_ai_review() -> str |
Generate AI review of the BOP. |
| generate | generate(bop_code: str = '', with_ai: bool = True) -> str |
Generate the complete BOP document as HTML. |
| send | send(bop_code: str = '', recipients: str = '', with_ai: bool = True) -> bool |
Generate and email the BOP document. |
| to_markdown | to_markdown(bop_code: str = '', with_ai: bool = True) -> str |
Generate the BOP as a Markdown document. |
| save_markdown | save_markdown(bop_code: str = '', output_path: str = '') -> str |
Generate and save the BOP as a Markdown file. |
| list_bops | list_bops(package: str = '') -> list[dict[str, Any]] |
List all active BOPs for a package. |
| discover_data_tables | discover_data_tables(with_ai: bool = True) -> list[dict[str, str]] |
Auto-discover bloom and collections tables. |
| collect_service_data | collect_service_data(service_name: str) -> dict[str, Any] |
Collect details for a service. |
Generate a BOP document as HTML.
Generate and email a BOP document.
Generate a BOP as Markdown.
List all active BOPs for a package.
Create a new BOP definition.