Skip to main content

The openIMIS Backend workflow reference module.

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

openimis_be_workflow-1.1.0.tar.gz (8.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

openimis_be_workflow-1.1.0-py3-none-any.whl (13.6 kB view details)

Uploaded Python 3

File details

Details for the file openimis_be_workflow-1.1.0.tar.gz.

File metadata

  • Download URL: openimis_be_workflow-1.1.0.tar.gz
  • Upload date:
  • Size: 8.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.0

File hashes

Hashes for openimis_be_workflow-1.1.0.tar.gz
Algorithm Hash digest
SHA256 ba0eb5066495ca2f7fbf6f022aaa0c55ee613091a12dc9e53d306347749f477f
MD5 04df34e9c5087208610cc7cbe21f0558
BLAKE2b-256 e7f0cdac6f8186680ffac7700a1e6deeb95109fb5f9ef3776be6403f03095d26

See more details on using hashes here.

File details

Details for the file openimis_be_workflow-1.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for openimis_be_workflow-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 031e93f5a4d9327b4aa5aca994e0131cb61c051f89878fb3b6e150984357822f
MD5 28cda372634c9d33c3891f76fe4a08f2
BLAKE2b-256 1b0d2395a96520a45bd0f521acdfd2a5c618f2bb567cacc910f1d525659acf2a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page