2021-05-10 17:38:15 +00:00
|
|
|
.. _index-cr-connect-workflow:
|
|
|
|
|
|
|
|
===================
|
|
|
|
CR Connect Workflow
|
|
|
|
===================
|
|
|
|
|
2021-06-15 17:56:30 +00:00
|
|
|
CR Connect Workflow is the backend for CR Connect.
|
2021-05-10 17:38:15 +00:00
|
|
|
|
2021-06-15 17:56:30 +00:00
|
|
|
It has an **API** that takes requests from the front end,
|
2021-05-10 17:38:15 +00:00
|
|
|
and returns JSON responses.
|
|
|
|
|
2021-06-15 17:56:30 +00:00
|
|
|
There are SQLAlchemy database **models** for data persistence. We use a Postgres database.
|
2021-05-10 17:38:15 +00:00
|
|
|
|
2021-06-15 17:56:30 +00:00
|
|
|
It has **services** that offload most of the work for the API. These services can make calls to other services,
|
2021-05-10 17:38:15 +00:00
|
|
|
to SpiffWorkflow--our workflow engine, or to external data sources.
|
|
|
|
|
2021-06-15 17:56:30 +00:00
|
|
|
There are **scripts** which can be called from workflows. These scripts can call services or run standard Python.
|
2021-05-10 17:38:15 +00:00
|
|
|
They are a primary way of extending workflow capabilities.
|
|
|
|
|
2021-06-29 17:56:02 +00:00
|
|
|
.. image:: /_static/03/cr_connect_workflow.png
|
2021-05-11 14:38:23 +00:00
|
|
|
|
2021-05-10 20:10:57 +00:00
|
|
|
We will take a simple example of calling an external data source,
|
|
|
|
and use it to learn about the different parts of the CR Connect Workflow code base.
|
|
|
|
|
2021-05-10 17:38:15 +00:00
|
|
|
|
|
|
|
.. toctree::
|
2021-06-29 17:56:02 +00:00
|
|
|
:maxdepth: 3
|
2021-05-10 17:38:15 +00:00
|
|
|
|
2021-05-27 14:48:01 +00:00
|
|
|
01_scripts/00_index.rst
|
|
|
|
02_services/00_index.rst
|
|
|
|
03_api/00_index.rst
|
2021-05-17 20:27:05 +00:00
|
|
|
04_errors/00_index.rst
|
2021-05-25 14:35:53 +00:00
|
|
|
05_tests/00_index.rst
|
2021-06-07 19:28:04 +00:00
|
|
|
06_models/00_index.rst
|