-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathforms-flow-documents.html
326 lines (282 loc) · 18.7 KB
/
forms-flow-documents.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="Forms flow ai documentation">
<meta name="author" content="formsflow.ai">
<link rel="shortcut icon" href="favicon.ico">
<title>Welcome to formsflow.ai</title>
<!-- Google Font -->
<!-- <link href="https://fonts.googleapis.com/css?family=Poppins:300,400,500,600,700&display=swap" rel="stylesheet"> -->
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@300&display=swap" rel="stylesheet">
<!-- FontAwesome JS-->
<script defer src="assets/fontawesome/js/all.min.js"></script>
<!-- Plugins CSS -->
<link rel="stylesheet" href="assets/plugins/simplelightbox/simple-lightbox.min.css">
<!-- Theme CSS -->
<link id="theme-style" rel="stylesheet" href="assets/css/theme.css">
<link id="theme-style" rel="stylesheet" href="assets/css/atom-one-dark.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
</head>
<body>
<header class="header fixed-top">
<div class="branding docs-branding">
<div class="container-fluid position-relative py-2">
<div class="docs-logo-wrapper">
<button id="docs-sidebar-toggler" class="docs-sidebar-toggler docs-sidebar-visible me-2 d-xl-none"
type="button">
<span></span>
<span></span>
<span></span>
</button>
<div class="site-logo"><a class="navbar-brand" href="index.html"><img class="logo-icon me-2"
src="assets/images/formsflow.ai-logo.svg" alt="logo"><span
class="logo-text">formsflow.ai</span></a></div>
</div>
<!--//docs-logo-wrapper-->
<div class="docs-top-utilities d-flex justify-content-end align-items-center">
<!-- <div class="top-search-box d-none d-lg-flex">
<form class="search-form">
<input type="text" placeholder="Search the docs..." name="search"
class="form-control search-input">
<button type="submit" class="btn search-btn" value="Search"><i
class="fas fa-search"></i></button>
</form>
</div> -->
<ul class="social-list list-inline mx-md-3 mx-lg-5 mb-0 d-none d-lg-flex">
<li class="list-inline-item"><a href="https://github.com/AOT-Technologies/forms-flow-ai"><i
class="fab fa-github fa-fw"></i></a></li>
</ul>
<!--//social-list-->
<a href="https://github.com/AOT-Technologies/forms-flow-ai"
class="btn btn-primary d-none d-lg-flex">Download</a>
</div>
<!--//docs-top-utilities-->
</div>
<!--//container-->
</div>
<!--//branding-->
</header>
<!--//header-->
<div class="docs-wrapper">
<div id="docs-sidebar" class="docs-sidebar">
<!-- mobile view -->
<div class="top-search-box d-lg-none p-3">
<form class="search-form">
<input type="text" placeholder="Search the docs..." name="search" class="form-control search-input">
<button type="submit" class="btn search-btn" value="Search"><i class="fas fa-search"></i></button>
</form>
</div>
<nav id="docs-nav" class="docs-nav navbar">
<ul class="section-items list-unstyled nav flex-column pb-3">
<!-- main heading -->
<li class="nav-item section-title"><a class="nav-link scrollto active" href="#section-1"><span
class="theme-icon-holder me-2"><i class="fas fa-map-signs"></i></span>Getting
started</a></li>
<li class="nav-item active" id="introduction"><a class="nav-link scrollto"
href="#introduction">Introduction</a></li>
<li class="nav-item" id="aboutproject"><a class="nav-link scrollto" href="#aboutproject">About The
Project</a></li>
<li class="nav-item" id="architecture"><a class="nav-link scrollto" href="#architecture">System
Architecture</a>
</li>
<li class="nav-item section-title mt-3"><a class="nav-link scrollto active" href="#section-2"><span
class="theme-icon-holder me-2"><i class="fa fa-download"></i></span>Download and
Installation</a></li>
<li class="nav-item" id="downloadformsflow"><a class="nav-link scrollto"
href="#downloadformsflow">Download Formsflow.ai</a></li>
<!-- main heading -->
<li class="nav-item section-title mt-3"><a class="nav-link scrollto active" href="#section-3"><span
class="theme-icon-holder me-2"><i class="fas fa-map-signs"></i></span>Docker Based
Installation</a></li>
<li class="nav-item" id="quick_installation"><a class="nav-link scrollto"
href="#quick_installation">Quick Installation</a></li>
<li class="nav-item" id="docker_full_deployment"><a class="nav-link scrollto"
href="#docker_full_deployment">Docker Full Deployment</a></li>
<li class="nav-item" id="individual_service_deployment"><a class="nav-link scrollto"
href="#individual_service_deployment">Individual Service Deployment</a></li>
<li class="nav-item section-title mt-3"><a class="nav-link scrollto" href="#section-4"><span
class="theme-icon-holder me-2"><i class="fas fa-arrow-down"></i></span>Kubernetes
Installation</a>
</li>
<li class="nav-item" id="kubernetes_installation"><a class="nav-link scrollto"
href="#kubernetes_installation">Kubernetes
Installation</a></li>
<li class="nav-item section-title mt-3"><a class="nav-link scrollto" href="#section-5"><span
class="theme-icon-holder me-2"><i class="fas fa-arrow-down"></i></span>Usage
instructions</a>
</li>
<li class="nav-item" id="usage"><a class="nav-link scrollto" href="#usage">Usage</a>
</li>
<li class="nav-item section-title mt-3"><a class="nav-link scrollto" href="#section-6"><span
class="theme-icon-holder me-2"><i class="fas fa-arrow-down"></i></span>Features</a>
</li>
<li class="nav-item" id="language"><a class="nav-link scrollto"
href="#language">Internationalization</a></li>
<li class="nav-item" id="anonymous_form"><a class="nav-link scrollto"
href="#anonymous_form">Anonymous
Forms</a></li>
<li class="nav-item" id="draft_feature"><a class="nav-link scrollto" href="#draft_feature">Draft
Feature</a>
<li class="nav-item" id="exportpdf"><a class="nav-link scrollto" href="#exportpdf">Export Form as
PDF</a>
<li class="nav-item" id="camunda_listeners"><a class="nav-link scrollto"
href="#camunda_listeners">Bpm Listeners</a>
</li>
<li class="nav-item" id="camunda"><a class="nav-link scrollto" href="#camunda">Camunda Filters</a>
</li>
<li class="nav-item" id="task_variables"><a class="nav-link scrollto"
href="#task_variables">Taskvariable workflow</a></li>
<li class="nav-item" id="custom_components"><a class="nav-link scrollto"
href="#custom_components">Custom Components</a>
</li>
<li class="nav-item" id="keycloak_setup"><a class="nav-link scrollto"
href="#keycloak_setup">Keycloak SAML Setup</a></li>
<li class="nav-item" id="redash_guide"><a class="nav-link scrollto" href="#redash_guide">Analytics
User
Guide</a></li>
<li class="nav-item" id="logochange"><a class="nav-link scrollto" href="#logochange">Theming</a>
</li>
<li class="nav-item" id="custom_submission"><a class="nav-link scrollto" href="#custom_submission"
style="color: #566573">Form Adapter</a></li>
<li class="nav-item section-title mt-3"><a class="nav-link scrollto" href="#section-7"><span
class="theme-icon-holder me-2"><i class="fas fa-arrow-down"></i></span>Multitenancy</a>
<li class="nav-item" id="tenantbased_taskassignment"><a class="nav-link scrollto"
href="#tenantbased_taskassignment">Tenant-based task assignment</a></li>
<!-- main heading -->
<li class="nav-item section-title mt-3"><a class="nav-link scrollto" href="#section-9"><span
class="theme-icon-holder me-2"><i class="fas fa-lightbulb"></i></span>FAQs</a></li>
<li class="nav-item"><a class="nav-link scrollto" href="#item-9-1">Section Item 9.1</a></li>
<li class="nav-item"><a class="nav-link scrollto" href="#item-9-2">Section Item 9.2</a></li>
<li class="nav-item"><a class="nav-link scrollto" href="#item-9-3">Section Item 9.3</a></li>
</ul>
</nav>
<!--//docs-nav-->
</div>
<!--//docs-sidebar-->
<!-- // this is main container -->
<div>
<div class="container" id="main-content">
<article class="docs-article">
<section class="docs-section" id="doc">
<div>
<h1 id="formsflow-ai-export-api">formsflow.ai EXPORT API</h1><hr><br>
<p>The goal of the document API is to provide generate pdf with form submission data. It is
built using Python :snake: .</p>
<h2 id="prerequisites">Prerequisites</h2>
<ul>
<li>For docker based installation <a href="https://docker.com">Docker</a> need to be
installed.</li>
<li>Admin access to <a href="../forms-flow-idm/keycloak">Keycloak</a> server and ensure
audience(camunda-rest-api) is setup in Keycloak-bpm server.</li>
</ul>
<h3 id="installation">Installation</h3>
<p>If you are interested in contributing to the project, you can install through docker or
locally.</p>
<p>It's recommended to download dev-packages to follow Python coding standards for
project like PEP8 if you are interested in contributing to project.
You installing dev-packages using pip as follows:</p>
<p><code>python3 -m pip install -r requirements/dev.txt</code></p>
<h3 id="keycloak-setup">Keycloak Setup</h3>
<p>No specific client creation is required. Audience has been added for clients
<strong>forms-flow-web</strong> and <strong>forms-flow-bpm</strong>.
</p>
<h3 id="environment-configuration">Environment Configuration</h3>
<ul>
<li>Make sure you have a Docker machine up and running.</li>
<li>Make sure your current working directory is
"forms-flow-ai/forms-flow-documents".</li>
<li>Rename the file <strong>sample.env</strong> to <strong>.env</strong>.</li>
<li>Modify the environment variables in the newly created <strong>.env</strong> file if
needed. Environment variables are given in the table below,</li>
<li><strong>NOTE : {your-ip-address} given inside the .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</strong></li>
</ul>
<blockquote>
</blockquote>
<img src="./assets/images/Screenshot 2022-08-29 163432.png" width="600" height="500"><br>
<img src="./assets/images/Screenshot 2022-08-29 163622.png" width="600" height="350">
<br><br>
<div class="callout-block callout-block-info">
<div class="content">
<span class="callout-icon-holder me-1"></span>
<i class="fa fa-info-circle"></i>
<code>KEYCLOAK_URL</code> *, <code>CAMUNDA_API_URL</code>*, <code>FORMSFLOW_API_URL</code>*,<code>FORMSFLOW_DOC_API_URL</code>*
</div>
<br>
</div>
<p><strong>NOTE : Default realm is <code>forms-flow-ai</code></strong></p>
<h3 id="running-the-application">Running the Application</h3>
<ul>
<li>forms-flow-api service uses port 5006, make sure the port is available.</li>
<li>
<p><code>cd {Your Directory}/forms-flow-ai/forms-flow-documents</code></p>
</li>
<li>
<p>Run <code>docker-compose up -d</code> to start.</p>
</li>
</ul>
<p><em>NOTE: Use --build command with the start command to reflect any future
<strong>.env</strong> changes eg : <code>docker-compose up --build -d</code></em>
</p>
<h4 id="to-stop-the-application">To Stop the Application</h4>
<ul>
<li>Run <code>docker-compose stop</code> to stop.</li>
</ul>
<h3 id="verify-the-application-status">Verify the Application Status</h3>
<p> The application should be up and available for use at port defaulted to 5006 in <a
href="http://localhost:5006/">http://localhost:5006/</a></p>
<ul>
<li>Access the <strong>/checkpoint</strong> endpoint for a Health Check on API to see
it's up and running.</li>
</ul>
<pre><code class="hljs"> GET <span class="hljs-string">http:</span><span class="hljs-comment">//localhost:5006/checkpoint</span>
RESPONSE
{
<span class="hljs-string"> "message"</span>: <span class="hljs-string">"Welcome to formsflow.ai documents API"</span>
}
</code></pre>
</div>
</section>
</article>
</div>
<!-- ----------------------- this is footer section ------------------------ -->
<footer class="footer">
<div class="container text-center py-5">
<small class="copyright">Copyright © <a href="https://formsflow.ai/"
target="_blank">formsflow.ai</a></small>
<ul class="social-list list-unstyled pt-4 mb-0">
<li class="list-inline-item"><a href="https://github.com/AOT-Technologies/forms-flow-ai"><i
class="fab fa-github fa-fw"></i></a></li>
<li class="list-inline-item"><a href="https://twitter.com/formsflowai"><i
class="fab fa-twitter fa-fw"></i></a></li>
<li class="list-inline-item"><a
href="https://www.linkedin.com/company/aot-technologies/products/"><i
class="fab fa-linkedin-in"></i></a></li>
<li class="list-inline-item"><a href="https://www.facebook.com/formsflowai"><i
class="fab fa-facebook-f fa-fw"></i></a></li>
<li class="list-inline-item"><a href="https://www.instagram.com/formsflow.ai/"><i
class="fab fa-instagram fa-fw"></i></a></li>
</ul>
<!--//social-list-->
</div>
</footer>
</div>
</div>
</div>
<!--//docs-wrapper-->
<!-- Javascript -->
<script src="assets/plugins/popper.min.js"></script>
<script src="assets/plugins/bootstrap/js/bootstrap.min.js"></script>
<!-- Page Specific JS -->
<script src="assets/plugins/smoothscroll.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.15.8/highlight.min.js"></script>
<script src="assets/js/highlight-custom.js"></script>
<script src="assets/plugins/simplelightbox/simple-lightbox.min.js"></script>
<script src="assets/plugins/gumshoe/gumshoe.polyfills.min.js"></script>
<script>hljs.initHighlighting();</script>
</body>
</html>