openIMIS Backend workflow reference module
This repository holds the files of the openIMIS Backend Workflow reference module. It is dedicated to be deployed as a module of openimis-be_py.
Services
- Workflow service
- register
- get systems/groups/workflows
Registering workflow systems
Workflow service can be extended with custom adaptors to integrate with new workflow systems. Any adaptor have to
extend workflow.systems.base.WorkflowAdaptor and return triggers as implementations of
workflow.systems.base.WorkflowHandler.
WorkflowService.register_system_adaptor(CustomWorkflowAdaptor)
Querying workflows
Querying available workflows can be done using WorkflowService.get_workflows service. All registered workflow systems
have to implement filtering workflows by group and name.
workflows_result = WorkflowService.get_workflows(group='default', name='example')
if workflows_result['success']:
workflow_handlers = workflows_result['data']['workflows']
Executing workflows
Workflow handlers are self contained triggers for a specific workflow in a given system. the WorkflowHandler.run
method allows perform a workflow run with a given payload.
payload = { ... }
result = handler.run(payload)
Depending on the system, workflow runs can be synchronous and will return result of the workflow, or asynchronous and will return necessary info to check workflow status in a given workflow system.
Metadata
Release files for openimis-be-workflow 1.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| openimis_be_workflow-1.2.0.tar.gz | 11.2 kB | Without provenance | Details for openimis_be_workflow-1.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| openimis_be_workflow-1.2.0-py3-none-any.whl | Python 3 | none | any | Details for openimis_be_workflow-1.2.0-py3-none-any.whl |
Total release size: 27.7 kB
Release files / openimis_be_workflow-1.2.0.tar.gz
| Download URL | openimis_be_workflow-1.2.0.tar.gz |
|---|---|
| Size | 11.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
71e499646ba96af49495d349131e15017854f07701a925fb09cccd0d62a4b43a
|
|
BLAKE2b-256 checksum How to use checksums |
ed462879478c6f0db9edfe837549ee1300d1308b969946d33ba3109c8bd88e68
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.15.1
|
Release files / openimis_be_workflow-1.2.0-py3-none-any.whl
| Download URL | openimis_be_workflow-1.2.0-py3-none-any.whl |
|---|---|
| Size | 16.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
443106ea4c79e7fc0c15f7777af96a08e0e61b524cd0d7f4d43c03da998fcd35
|
|
BLAKE2b-256 checksum How to use checksums |
beb6bff2a0dc5fed2eeaf964855e962514cdb2c09c027f12e2b7ce663e12058d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.15.1
|
Security for openimis-be-workflow 1.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.