Skip to content

Commit

Permalink
RC4.0.1 changes (#134)
Browse files Browse the repository at this point in the history
v4.0.1 Changes

Co-authored-by: nikhila-aot <38471389+nikhila-aot@users.noreply.github.com>
Co-authored-by: Josephalexantony-aot <83585487+Josephalexantony-aot@users.noreply.github.com>
Co-authored-by: Kurian Benoy <70306694+kurianbenoy-aot@users.noreply.github.com>
Co-authored-by: Abil P Raju <83952803+abilpraju-aot@users.noreply.github.com>
Co-authored-by: shibin-aot <shibin.thomas@aot-technologies.com>
Co-authored-by: unknown <alex.antony@aot-technology.com>
Co-authored-by: sumathi-thirumani-aot <57740789+sumathi-thirumani-aot@users.noreply.github.com>
Co-authored-by: Shibin Thomas <83489861+shibin-aot@users.noreply.github.com>
Co-authored-by: seethalelias-aot <seethal.elias@aot-technologies.com>
Co-authored-by: seethalelias-aot <83584866+seethalelias-aot@users.noreply.github.com>
Co-authored-by: twinkleaot <twinkle.joseph@gmail.com>
Co-authored-by: kurianbenoy-aot <kurian.benoy@aot-technologies.com>
Co-authored-by: sumathi-thirumani-aot <sumathi.thirumani@aot-technologies.com>
Co-authored-by: Kurian Benoy <70306694+kurianbenoy-aot@users.noreply.github.com>
Co-authored-by: Josephalexantony-aot <83585487+Josephalexantony-aot@users.noreply.github.com>
Co-authored-by: Abil P Raju <83952803+abilpraju-aot@users.noreply.github.com>
Co-authored-by: shibin-aot <shibin.thomas@aot-technologies.com>
Co-authored-by: unknown <alex.antony@aot-technology.com>
Co-authored-by: sumathi-thirumani-aot <57740789+sumathi-thirumani-aot@users.noreply.github.com>
Co-authored-by: Shibin Thomas <83489861+shibin-aot@users.noreply.github.com>
Co-authored-by: seethalelias-aot <seethal.elias@aot-technologies.com>
Co-authored-by: seethalelias-aot <83584866+seethalelias-aot@users.noreply.github.com>
Co-authored-by: kurianbenoy-aot <kurian.benoy@aot-technologies.com>
Co-authored-by: sumathi-thirumani-aot <sumathi.thirumani@aot-technologies.com>
  • Loading branch information
14 people authored Jul 13, 2021
1 parent a1a447f commit d012566
Show file tree
Hide file tree
Showing 155 changed files with 19,999 additions and 10,354 deletions.
Binary file added .images/Designer_form-edit.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified .images/client-landing.PNG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified .images/client-submission-success.PNG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified .images/client-submission.PNG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed .images/designer-feedback-1.PNG
Binary file not shown.
Binary file modified .images/designer-final-submit.PNG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified .images/designer-landing.PNG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified .images/designer-publish.PNG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified .images/designer-workflow.PNG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .images/reviewer-action.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified .images/reviewer-form-view.PNG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .images/reviewer-landing-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified .images/reviewer-landing.PNG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified .images/reviewer-print.PNG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed .images/reviewer-view-forms.PNG
Binary file not shown.
Binary file added .images/reviewer_beforeclaim.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .images/reviewer_diagram.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .images/reviewer_history.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .images/reviewer_history_changed.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
58 changes: 57 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,63 @@
# Changelog for formsflow.ai
Mark items as `Added`, `Changed`, `Fixed`, `Removed`, `Untested Features`, `Upcoming Features`

## 4.0.1 - 2021-07-13

`Added`

**forms-flow-api**
* Support for allowing CORS with multiple comma-separated origins.
* Added authorization on the application details page based on user roles.

**forms-flow-bpm**
* Added new workflows - `One-Step Approval Process` and `Two-Step Approval Process`.

**forms-flow-forms**
* Added new forms- `Create New Business License Application` and `Freedom of Information and Protection of Privacy`.

**forms-flow-web**
* Show/hide Application Menu based on keycloak group.
* Show/hide View Submissions button in form webpage based on keycloak group.
* Add 404 page.
* Add 403 page.

`Fixed`

**forms-flow-analytics**
* Fixed the failing installation of the analytics component.

**forms-flow-api**
* Fix application details API not displaying values to client users.
* Fixed the issue of not creating applications when called from the BPM side with process-instance-id.

**forms-flow-bpm**
* Fix done for authentication issue with Keycloak in the Keycloak configuration.
* Fix done for single result query fetching multiple record's during formio REST call.

**forms-flow-web**
* Resolve Last Modified column on the client Application page is not working.
* Fix Application search icons breaking.
* Resolve Mime type issue in the webpage.

`Modified`

**forms-flow-bpm**
* formio token generation cycle reduced from 24 hours to 3.50 Hours.
* Modified checked exception's on Listener services to Runtime exception.
* Modified application logging package to Camunda base package level.

**forms-flow-web**
* Modify WebSocket implementation to support reconnection in Task Menu.
* Footer was modified to display formsflow.ai with the version number.

`Generic Changes`
* Improved the README to document supported version for Keycloak.
* Updated [usage docs](./USAGE.md) with the latest form and workflow.
* v1.0.7 release for `camunda-formio-tasklist-vue`,a Vue.js-based package for easy integration of formsflow.ai to existing projects. To know more details checkout [formsflow-ai-extension repository](https://github.com/AOT-Technologies/forms-flow-ai-extensions/tree/master/camunda-formio-tasklist-vue)

`Known Issues`
* Consoles related to http://localhost:3001/current Api Failing. The console messages can be ignored. Please refer to [Issue-#106](https://github.com/AOT-Technologies/forms-flow-ai/issues/106) for more details.

## 4.0.0 - 2021-06-11

`Added`
Expand Down Expand Up @@ -85,7 +142,6 @@ Mark items as `Added`, `Changed`, `Fixed`, `Removed`, `Untested Features`, `Upc
* Custom component (Text Area with analytics) not retaining the value after submission
* Cosmetic changes to show success message after loading is completed


## 2.0.1 - 2020-07-27
`Added`
* This file (CHANGELOG.md)
Expand Down
336 changes: 164 additions & 172 deletions USAGE.md

Large diffs are not rendered by default.

20 changes: 11 additions & 9 deletions deployment/docker/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ Start the **analytics server** by following the instructions given [here](../../
Variable name | Meaning | Possible values | Default value |
--- | --- | --- | ---
`KEYCLOAK_URL`:triangular_flag_on_post:| URL to your Keycloak server || `http://{your-ip-address}:8080`
`KEYCLOAK_URL_REALM`| The Keycloak realm to use|eg. forms-flow-ai | `forms-flow-ai`
`KEYCLOAK_URL_REALM`|The Keycloak realm to use|eg. forms-flow-ai | `forms-flow-ai`
`KEYCLOAK_BPM_CLIENT_ID`|Client ID for Camunda to register with Keycloak|eg. forms-flow-bpm|`forms-flow-bpm`
`KEYCLOAK_BPM_CLIENT_SECRET`:triangular_flag_on_post:|Client Secret of Camunda client in realm|eg. 22ce6557-6b86-4cf4-ac3b-42338c7b1ac12|must be set to your Keycloak client secret. Follow the 'Get the keycloak client secret' steps from [Here](../../forms-flow-idm/keycloak/README.md#get-the-keycloak-client-secret)
`KEYCLOAK_WEB_CLIENT_ID`|Client ID for formsflow.ai to register with Keycloak|eg. forms-flow-web|`forms-flow-web`
Expand Down Expand Up @@ -163,13 +163,16 @@ Variable name | Meaning | Possible values | Default value |
--- | --- | --- | ---
`NODE_ENV`| Define project level configuration | `development, test, production` | `development`
`APPLICATION_NAME`| Application_Name | eg: formsflow.ai| `formsflow.ai`
`FORMSFLOW_API_CORS_ORIGINS`| formsflow.ai Rest API allowed origins, for multiple origins you can separate host address using a comma |eg:`host1, host2`| `*`
`FORMSFLOW_API_CORS_ORIGINS`| formsflow.ai Rest API allowed origins, for allowing multiple origins you can separate host address using a comma seperated string or use * to allow all origins |eg:`host1, host2, host3`| `*`
`CAMUNDA_API_URL` :triangular_flag_on_post: |Camunda Rest API URL||`http://{your-ip-address}:8000/camunda`
`FORMSFLOW_API_URL`:triangular_flag_on_post:|formsflow.ai Rest API URL||`http://{your-ip-address}:5000`
`FORMSFLOW_API_ANALYTICS_DB_USERNAME`|Mongo DB Connection username|Used on installation to create the database. Choose your own|`mongo`
`FORMSFLOW_API_ANALYTICS_DB_PASSWORD`|Mongo DB Connection password|Used on installation to create the database. Choose your own|`changeme`
`FORMSFLOW_API_ANALYTICS_DB_NAME`|Mongo DB Connection database name|Used on installation to create the database. Choose your own|`analytics`
`FORMSFLOW_API_ANALYTICS_DB_URL`|Mongo DB Connection URL of formio for sentiment analysis|Used on installation to create the database. Choose your own|`mongodb://mongo:changeme@forms-flow-webapi-analytics-db:27019/analytics?authSource=admin&authMechanism=SCRAM-SHA-256`
`USER_ACCESS_PERMISSIONS`| JSON formatted permissions to enable / disable few access on user login.|| `{"accessAllowApplications":false,"accessAllowSubmissions":false}`

* NOTE - While configuring USER_ACCESS_PERMISSIONS the accessAllowApplications will hide / show application tab, the same way accessAllowSubmissions does for viewSubmission button. To enable this feature you need to add access-allow-applications, access-allow-submissions with the respective user group in keycloak.

##### CAMUNDA_JDBC : Dedicated camunda database.
--------------------------------------
Expand Down Expand Up @@ -236,13 +239,12 @@ Modify the file **mail-config.properties** (under `forms-flow-bpm/src/main/resou
* Run `docker-compose -f docker-compose-windows.yml stop` to stop.

### Health Check
* Analytics should be up and available for use at port defaulted to 7000 i.e. http://localhost:7000/
* Business Process Engine should be up and available for use at port defaulted to 8000 i.e. http://localhost:8000/camunda/
* FormIO should be up and available for use at port defaulted to 3001 i.e. http://localhost:3001/
* formsflow.ai Rest API should be up and available for use at port defaulted to 5000 i.e. http://localhost:5000/checkpoint
* formsflow.ai web application should be up and available for use at port defaulted to 3000 i.e. http://localhost:3000/

* Access credentials are mentioned [here](../README.md#verifying-the-installation-status).
* Analytics should be up and available for use at port defaulted to 7000 i.e. http://localhost:7000/
* Business Process Engine should be up and available for use at port defaulted to 8000 i.e. http://localhost:8000/camunda/
* FormIO should be up and available for use at port defaulted to 3001 i.e. http://localhost:3001/
* formsflow.ai Rest API should be up and available for use at port defaulted to 5000 i.e. http://localhost:5000/checkpoint
* formsflow.ai web application should be up and available for use at port defaulted to 3000 i.e. http://localhost:3000/
* Access credentials are mentioned [here](../README.md#verifying-the-installation-status).

### Usage Instructions

Expand Down
3 changes: 2 additions & 1 deletion deployment/docker/docker-compose-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ services:
- FORMIO_ROOT_EMAIL=${FORMIO_ROOT_EMAIL:-admin@example.com}
- FORMIO_ROOT_PASSWORD=${FORMIO_ROOT_PASSWORD:-changeme}
- APP_SECURITY_ORIGIN=${APP_SECURITY_ORIGIN:-*}
- WEBSOCKET_SECURITY_ORIGIN=${WEBSOCKET_SECURITY_ORIGIN:-*}
- WEBSOCKET_SECURITY_ORIGIN=${WEBSOCKET_SECURITY_ORIGIN}
- WEBSOCKET_MESSAGE_TYPE=${WEBSOCKET_MESSAGE_TYPE:-TASK_EVENT}
- WEBSOCKET_ENCRYPT_KEY=${WEBSOCKET_ENCRYPT_KEY:-giert989jkwrgb@DR55}
networks:
Expand Down Expand Up @@ -135,6 +135,7 @@ services:
- REACT_APP_KEYCLOAK_URL_REALM=${KEYCLOAK_URL_REALM:-forms-flow-ai}
- REACT_APP_KEYCLOAK_URL=${KEYCLOAK_URL}
- REACT_APP_APPLICATION_NAME=${APPLICATION_NAME:-formsflow.ai}
- REACT_APP_USER_ACCESS_PERMISSIONS=${USER_ACCESS_PERMISSIONS}
volumes:
- '.:/app'
- '/app/node_modules'
Expand Down
3 changes: 2 additions & 1 deletion deployment/docker/docker-compose-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ services:
- FORMIO_ROOT_EMAIL=${FORMIO_ROOT_EMAIL:-admin@example.com}
- FORMIO_ROOT_PASSWORD=${FORMIO_ROOT_PASSWORD:-changeme}
- APP_SECURITY_ORIGIN=${APP_SECURITY_ORIGIN:-*}
- WEBSOCKET_SECURITY_ORIGIN=${WEBSOCKET_SECURITY_ORIGIN:-*}
- WEBSOCKET_SECURITY_ORIGIN=${WEBSOCKET_SECURITY_ORIGIN}
- WEBSOCKET_MESSAGE_TYPE=${WEBSOCKET_MESSAGE_TYPE:-TASK_EVENT}
- WEBSOCKET_ENCRYPT_KEY=${WEBSOCKET_ENCRYPT_KEY:-giert989jkwrgb@DR55}
networks:
Expand Down Expand Up @@ -136,6 +136,7 @@ services:
- REACT_APP_KEYCLOAK_URL_REALM=${KEYCLOAK_URL_REALM:-forms-flow-ai}
- REACT_APP_KEYCLOAK_URL=${KEYCLOAK_URL}
- REACT_APP_APPLICATION_NAME=${APPLICATION_NAME:-formsflow.ai}
- REACT_APP_USER_ACCESS_PERMISSIONS=${USER_ACCESS_PERMISSIONS}
volumes:
- '.:/app'
- '/app/node_modules'
Expand Down
2 changes: 2 additions & 0 deletions deployment/docker/sample.env
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,8 @@ USER_RESOURCE_ID={User forms form-Id}
#NODE_ENV=development
#Application_Name
APPLICATION_NAME=formsflow.ai
#Role level permission defining
USER_ACCESS_PERMISSIONS={"accessAllowApplications":false,"accessAllowSubmissions":false}
##Camunda Rest API URI
CAMUNDA_API_URL=http://{your-ip-address}:8000/camunda
##web Api End point
Expand Down
7 changes: 6 additions & 1 deletion forms-flow-analytics/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ your use case with formsflow.ai checkout [Redash Knowledge base](https://redash.

* Make sure you have a Docker machine up and running.
* Make sure your current working directory is "forms-flow-ai/forms-flow-analytics".
* Modify the environment variables inside [redash.env](./redash.env) file if needed. Environment variables are given in the table below
* Rename the file [sample.env](./sample.env) to **.env**.
* Modify the environment variables inside [.env](./sample.env) file if needed. Environment variables are given in the table below
* **NOTE : `{your-ip-address}` given inside the [redash.env](./redash.env) file should be changed to your host system IP address. Please take special care to identify the correct IP address if your system has multiple network cards**

> :information_source: Variables with trailing :triangular_flag_on_post: in below table should be updated in the `redash.env` file
Expand Down Expand Up @@ -82,6 +83,7 @@ Variable name | Meaning | Possible values | Default value |
The application should be up and available for use at port defaulted to 7000 in http://localhost:7000/
and register with any valid credentials.


### Configuration of Keycloak SAML Setup

* Post registration, login to the application with admin credentials.
Expand All @@ -102,3 +104,6 @@ Variable name | Meaning | Possible values | Default value |
* Go to Account Section
* Copy API Key to Clipboard

### Redash how to use guide

Check our guide on [how to configure Redash and come up with awesome visualization using redash](./docs/README.md). Also [sample queries for default forms](./docs/sample_queries.md).
23 changes: 8 additions & 15 deletions forms-flow-analytics/docker-compose-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,35 +6,28 @@ x-redash-service: &redash-service
depends_on:
- postgres
- redis
env_file: redash.env
env_file: .env
restart: always

services:
server:
<<: *redash-service
command: server
command: dev_server
ports:
- '7000:5000'
environment:
REDASH_WEB_WORKERS: 4
scheduler:
<<: *redash-service
command: scheduler
environment:
QUEUES: "celery"
WORKERS_COUNT: 1
scheduled_worker:
command: dev_server
depends_on:
- server
worker:
<<: *redash-service
command: worker
environment:
QUEUES: "scheduled_queries,schemas"
QUEUES: "periodic emails default"
WORKERS_COUNT: 1
adhoc_worker:
<<: *redash-service
command: worker
environment:
QUEUES: "queries"
WORKERS_COUNT: 2
redis:
image: redis:latest
restart: always
Expand All @@ -43,6 +36,6 @@ services:
ports:
- '7432:5432'
restart: always
env_file: redash.env
env_file: .env
volumes:
- ./postgres/analytics:/var/lib/postgresql/data
25 changes: 9 additions & 16 deletions forms-flow-analytics/docker-compose-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,39 +2,32 @@
version: "3.7"

x-redash-service: &redash-service
build: https://github.com/AOT-Technologies/redash.git
build: https://github.com/AOT-Technologies/redash.git
depends_on:
- postgres
- redis
env_file: redash.env
env_file: .env
restart: always

services:
server:
<<: *redash-service
command: server
command: dev_server
ports:
- '7000:5000'
environment:
REDASH_WEB_WORKERS: 4
scheduler:
<<: *redash-service
command: scheduler
environment:
QUEUES: "celery"
WORKERS_COUNT: 1
scheduled_worker:
command: dev_server
depends_on:
- server
worker:
<<: *redash-service
command: worker
environment:
QUEUES: "scheduled_queries,schemas"
QUEUES: "periodic emails default"
WORKERS_COUNT: 1
adhoc_worker:
<<: *redash-service
command: worker
environment:
QUEUES: "queries"
WORKERS_COUNT: 2
redis:
image: redis:latest
restart: always
Expand All @@ -43,6 +36,6 @@ services:
ports:
- '7432:5432'
restart: always
env_file: redash.env
env_file: .env
volumes:
- ./postgres/analytics:/data/postgres
41 changes: 41 additions & 0 deletions forms-flow-analytics/docs/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# forms-flow-analytics Usage Documentation

1. [How to use forms-flow-analytics](#how-to-use-forms-flow-analytics)
2. [Sample Queries](#sample-queries)

## How to use forms-flow-analytics?


The process of how to use Redash is [well documented in official docs](https://redash.io/help/). Some of the basic steps for working with Redash are:

1. *Add Data sources*

You can connect with about 30+ supported data sources mentioned in docs from the browser itself.
![image](https://user-images.githubusercontent.com/70306694/125465830-2b6d3985-4dc8-423c-9947-5ae3d689cab0.png)

2. *Write Queries*
Once data is connected we can write queries. It’s always ideal to create individual queries for the necessary visualizations. Writing queries is a data preparation step to process data for visualization.

![image](https://user-images.githubusercontent.com/70306694/125465939-cf68ce67-c589-49d1-9110-067d0e896054.png)


3. *Create Visualizations*

There are a variety of visualizations supported in Redash. Ten different categories of visualization can be created with just drag and select features to visualize from the queried data. Redash supports visualization types like BoxPlot, Counter, BarCharts, Sunburst, Sankey, Word Cloud, line chart, Area charts, etc. To learn how to create visualizations checkout Redash visualization docs.

![image](https://user-images.githubusercontent.com/70306694/125466037-7b66530f-235b-4198-8c6f-46d556726963.png)


4. *Create Dashboards*

We can create interactive dashboards that can be embedded anywhere and shared with colleagues easily. The queries can be refreshed periodically as more data comes in.

![image](https://user-images.githubusercontent.com/70306694/125466079-02a24f12-58ed-40e4-a669-b88dbb456645.png)


## Sample Queries

To check the sample queries provided with our default forms [check our documentation](./sample_queries.md)


To learn more about Redash check the [Tools we love article about Redash](https://www.aot-technologies.com/tools-we-love-redash/).
Loading

0 comments on commit d012566

Please sign in to comment.