@docbrasil/api-systemmanager 1.1.89 → 1.1.91
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/api/user/process.js +377 -249
- package/dist/bundle.cjs +364 -236
- package/dist/bundle.mjs +1 -1
- package/doc/api.md +77 -10
- package/docs/Process.html +665 -68
- package/docs/user_process.js.html +377 -249
- package/package.json +1 -1
- package/yarn-error.log +0 -4554
package/docs/Process.html
CHANGED
|
@@ -2801,8 +2801,8 @@ await api.user.process.getProcessProperties(params, session);</code></pre>
|
|
|
2801
2801
|
|
|
2802
2802
|
|
|
2803
2803
|
|
|
2804
|
-
<h4 class="name" id="
|
|
2805
|
-
<a class="href-link" href="#
|
|
2804
|
+
<h4 class="name" id="processDocs">
|
|
2805
|
+
<a class="href-link" href="#processDocs">#</a>
|
|
2806
2806
|
|
|
2807
2807
|
|
|
2808
2808
|
<span class='tag'>async</span>
|
|
@@ -2810,7 +2810,7 @@ await api.user.process.getProcessProperties(params, session);</code></pre>
|
|
|
2810
2810
|
|
|
2811
2811
|
<span class="code-name">
|
|
2812
2812
|
|
|
2813
|
-
|
|
2813
|
+
processDocs<span class="signature">(params, session)</span><span class="type-signature"> → {promise|array.<object>}</span>
|
|
2814
2814
|
|
|
2815
2815
|
</span>
|
|
2816
2816
|
</h4>
|
|
@@ -2819,7 +2819,7 @@ await api.user.process.getProcessProperties(params, session);</code></pre>
|
|
|
2819
2819
|
|
|
2820
2820
|
|
|
2821
2821
|
<div class="description">
|
|
2822
|
-
|
|
2822
|
+
Method to get Process Docs
|
|
2823
2823
|
</div>
|
|
2824
2824
|
|
|
2825
2825
|
|
|
@@ -2873,7 +2873,7 @@ await api.user.process.getProcessProperties(params, session);</code></pre>
|
|
|
2873
2873
|
|
|
2874
2874
|
|
|
2875
2875
|
|
|
2876
|
-
<td class="description last">Params to get
|
|
2876
|
+
<td class="description last">Params to get process docs</td>
|
|
2877
2877
|
</tr>
|
|
2878
2878
|
|
|
2879
2879
|
|
|
@@ -2881,7 +2881,7 @@ await api.user.process.getProcessProperties(params, session);</code></pre>
|
|
|
2881
2881
|
|
|
2882
2882
|
<tr class="deep-level-1">
|
|
2883
2883
|
|
|
2884
|
-
<td class="name"><code>
|
|
2884
|
+
<td class="name"><code>orgProcessId</code></td>
|
|
2885
2885
|
|
|
2886
2886
|
|
|
2887
2887
|
<td class="type">
|
|
@@ -2897,7 +2897,7 @@ await api.user.process.getProcessProperties(params, session);</code></pre>
|
|
|
2897
2897
|
|
|
2898
2898
|
|
|
2899
2899
|
|
|
2900
|
-
<td class="description last">Organization
|
|
2900
|
+
<td class="description last">Organization Process Id</td>
|
|
2901
2901
|
</tr>
|
|
2902
2902
|
|
|
2903
2903
|
|
|
@@ -2920,14 +2920,14 @@ await api.user.process.getProcessProperties(params, session);</code></pre>
|
|
|
2920
2920
|
|
|
2921
2921
|
|
|
2922
2922
|
|
|
2923
|
-
<td class="description last">Process
|
|
2923
|
+
<td class="description last">Process Id</td>
|
|
2924
2924
|
</tr>
|
|
2925
2925
|
|
|
2926
2926
|
|
|
2927
2927
|
|
|
2928
2928
|
<tr class="deep-level-1">
|
|
2929
2929
|
|
|
2930
|
-
<td class="name"><code>
|
|
2930
|
+
<td class="name"><code>orgId</code></td>
|
|
2931
2931
|
|
|
2932
2932
|
|
|
2933
2933
|
<td class="type">
|
|
@@ -2943,7 +2943,7 @@ await api.user.process.getProcessProperties(params, session);</code></pre>
|
|
|
2943
2943
|
|
|
2944
2944
|
|
|
2945
2945
|
|
|
2946
|
-
<td class="description last">
|
|
2946
|
+
<td class="description last">Organization id (_id database)</td>
|
|
2947
2947
|
</tr>
|
|
2948
2948
|
|
|
2949
2949
|
|
|
@@ -3025,7 +3025,7 @@ await api.user.process.getProcessProperties(params, session);</code></pre>
|
|
|
3025
3025
|
<p class="tag-source">
|
|
3026
3026
|
<a href="user_process.js.html" class="button">View Source</a>
|
|
3027
3027
|
<span>
|
|
3028
|
-
<a href="user_process.js.html">user/process.js</a>, <a href="user_process.js.html#
|
|
3028
|
+
<a href="user_process.js.html">user/process.js</a>, <a href="user_process.js.html#line372">line 372</a>
|
|
3029
3029
|
</span>
|
|
3030
3030
|
</p>
|
|
3031
3031
|
|
|
@@ -3056,13 +3056,31 @@ await api.user.process.getProcessProperties(params, session);</code></pre>
|
|
|
3056
3056
|
|
|
3057
3057
|
<div class="columns">
|
|
3058
3058
|
|
|
3059
|
-
<div class='param-desc column is-7'>
|
|
3059
|
+
<div class='param-desc column is-7'>returned data from the get process docs</div>
|
|
3060
|
+
|
|
3061
|
+
|
|
3062
|
+
<div class='column is-5 has-text-left'>
|
|
3063
|
+
<label>Type: </label>
|
|
3064
|
+
|
|
3065
|
+
<code class="param-type">promise</code>
|
|
3066
|
+
|
|
3067
|
+
|
|
3068
|
+
</div>
|
|
3069
|
+
|
|
3070
|
+
</div>
|
|
3071
|
+
|
|
3072
|
+
|
|
3073
|
+
|
|
3074
|
+
|
|
3075
|
+
<div class="columns">
|
|
3076
|
+
|
|
3077
|
+
<div class='param-desc column is-7'>Docs returned from process</div>
|
|
3060
3078
|
|
|
3061
3079
|
|
|
3062
3080
|
<div class='column is-5 has-text-left'>
|
|
3063
3081
|
<label>Type: </label>
|
|
3064
3082
|
|
|
3065
|
-
<code class="param-type">
|
|
3083
|
+
<code class="param-type">array.<object></code>
|
|
3066
3084
|
|
|
3067
3085
|
|
|
3068
3086
|
</div>
|
|
@@ -3082,12 +3100,12 @@ await api.user.process.getProcessProperties(params, session);</code></pre>
|
|
|
3082
3100
|
<pre class="prettyprint"><code>const API = require('@docbrasil/api-systemmanager');
|
|
3083
3101
|
const api = new API();
|
|
3084
3102
|
const params = {
|
|
3085
|
-
|
|
3086
|
-
|
|
3087
|
-
|
|
3088
|
-
}
|
|
3103
|
+
orgProcessId: '55e4a3bd6be6b45210833fae',
|
|
3104
|
+
processId: '55e4a3bd6be6b45210833fae',
|
|
3105
|
+
orgId: '55e4a3bd6be6b45210833fae',
|
|
3106
|
+
};
|
|
3089
3107
|
const session = 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...';
|
|
3090
|
-
const
|
|
3108
|
+
const retSearch = await api.user.process.processDocs(params, session);</code></pre>
|
|
3091
3109
|
|
|
3092
3110
|
|
|
3093
3111
|
|
|
@@ -3097,8 +3115,8 @@ const stepHistory = await api.user.process.getStepHistory(params, session);</cod
|
|
|
3097
3115
|
|
|
3098
3116
|
|
|
3099
3117
|
|
|
3100
|
-
<h4 class="name" id="
|
|
3101
|
-
<a class="href-link" href="#
|
|
3118
|
+
<h4 class="name" id="reexecute">
|
|
3119
|
+
<a class="href-link" href="#reexecute">#</a>
|
|
3102
3120
|
|
|
3103
3121
|
|
|
3104
3122
|
<span class='tag'>async</span>
|
|
@@ -3106,7 +3124,7 @@ const stepHistory = await api.user.process.getStepHistory(params, session);</cod
|
|
|
3106
3124
|
|
|
3107
3125
|
<span class="code-name">
|
|
3108
3126
|
|
|
3109
|
-
|
|
3127
|
+
reexecute<span class="signature">(params, session)</span><span class="type-signature"> → {Promise.<object>}</span>
|
|
3110
3128
|
|
|
3111
3129
|
</span>
|
|
3112
3130
|
</h4>
|
|
@@ -3115,7 +3133,8 @@ const stepHistory = await api.user.process.getStepHistory(params, session);</cod
|
|
|
3115
3133
|
|
|
3116
3134
|
|
|
3117
3135
|
<div class="description">
|
|
3118
|
-
|
|
3136
|
+
Re-execute a specific flow step in a running process. Unlike restart, this does not
|
|
3137
|
+
reset the process completion state. Task creation is deferred to the BPMN engine via RabbitMQ.
|
|
3119
3138
|
</div>
|
|
3120
3139
|
|
|
3121
3140
|
|
|
@@ -3169,7 +3188,7 @@ const stepHistory = await api.user.process.getStepHistory(params, session);</cod
|
|
|
3169
3188
|
|
|
3170
3189
|
|
|
3171
3190
|
|
|
3172
|
-
<td class="description last">Params to
|
|
3191
|
+
<td class="description last">Params to re-execute the process step</td>
|
|
3173
3192
|
</tr>
|
|
3174
3193
|
|
|
3175
3194
|
|
|
@@ -3177,7 +3196,7 @@ const stepHistory = await api.user.process.getStepHistory(params, session);</cod
|
|
|
3177
3196
|
|
|
3178
3197
|
<tr class="deep-level-1">
|
|
3179
3198
|
|
|
3180
|
-
<td class="name"><code>
|
|
3199
|
+
<td class="name"><code>processId</code></td>
|
|
3181
3200
|
|
|
3182
3201
|
|
|
3183
3202
|
<td class="type">
|
|
@@ -3193,14 +3212,14 @@ const stepHistory = await api.user.process.getStepHistory(params, session);</cod
|
|
|
3193
3212
|
|
|
3194
3213
|
|
|
3195
3214
|
|
|
3196
|
-
<td class="description last">
|
|
3215
|
+
<td class="description last">Process id (_id database);</td>
|
|
3197
3216
|
</tr>
|
|
3198
3217
|
|
|
3199
3218
|
|
|
3200
3219
|
|
|
3201
3220
|
<tr class="deep-level-1">
|
|
3202
3221
|
|
|
3203
|
-
<td class="name"><code>
|
|
3222
|
+
<td class="name"><code>orgId</code></td>
|
|
3204
3223
|
|
|
3205
3224
|
|
|
3206
3225
|
<td class="type">
|
|
@@ -3216,14 +3235,14 @@ const stepHistory = await api.user.process.getStepHistory(params, session);</cod
|
|
|
3216
3235
|
|
|
3217
3236
|
|
|
3218
3237
|
|
|
3219
|
-
<td class="description last">
|
|
3238
|
+
<td class="description last">Organization id (_id database);</td>
|
|
3220
3239
|
</tr>
|
|
3221
3240
|
|
|
3222
3241
|
|
|
3223
3242
|
|
|
3224
3243
|
<tr class="deep-level-1">
|
|
3225
3244
|
|
|
3226
|
-
<td class="name"><code>
|
|
3245
|
+
<td class="name"><code>flowName</code></td>
|
|
3227
3246
|
|
|
3228
3247
|
|
|
3229
3248
|
<td class="type">
|
|
@@ -3239,7 +3258,7 @@ const stepHistory = await api.user.process.getStepHistory(params, session);</cod
|
|
|
3239
3258
|
|
|
3240
3259
|
|
|
3241
3260
|
|
|
3242
|
-
<td class="description last">
|
|
3261
|
+
<td class="description last">The flow name of the step to re-execute;</td>
|
|
3243
3262
|
</tr>
|
|
3244
3263
|
|
|
3245
3264
|
|
|
@@ -3321,7 +3340,7 @@ const stepHistory = await api.user.process.getStepHistory(params, session);</cod
|
|
|
3321
3340
|
<p class="tag-source">
|
|
3322
3341
|
<a href="user_process.js.html" class="button">View Source</a>
|
|
3323
3342
|
<span>
|
|
3324
|
-
<a href="user_process.js.html">user/process.js</a>, <a href="user_process.js.html#
|
|
3343
|
+
<a href="user_process.js.html">user/process.js</a>, <a href="user_process.js.html#line646">line 646</a>
|
|
3325
3344
|
</span>
|
|
3326
3345
|
</p>
|
|
3327
3346
|
|
|
@@ -3352,31 +3371,13 @@ const stepHistory = await api.user.process.getStepHistory(params, session);</cod
|
|
|
3352
3371
|
|
|
3353
3372
|
<div class="columns">
|
|
3354
3373
|
|
|
3355
|
-
<div class='param-desc column is-7'>
|
|
3356
|
-
|
|
3357
|
-
|
|
3358
|
-
<div class='column is-5 has-text-left'>
|
|
3359
|
-
<label>Type: </label>
|
|
3360
|
-
|
|
3361
|
-
<code class="param-type">promise</code>
|
|
3362
|
-
|
|
3363
|
-
|
|
3364
|
-
</div>
|
|
3365
|
-
|
|
3366
|
-
</div>
|
|
3367
|
-
|
|
3368
|
-
|
|
3369
|
-
|
|
3370
|
-
|
|
3371
|
-
<div class="columns">
|
|
3372
|
-
|
|
3373
|
-
<div class='param-desc column is-7'>Docs returned from process</div>
|
|
3374
|
+
<div class='param-desc column is-7'>{ response: 'OK' } on success</div>
|
|
3374
3375
|
|
|
3375
3376
|
|
|
3376
3377
|
<div class='column is-5 has-text-left'>
|
|
3377
3378
|
<label>Type: </label>
|
|
3378
3379
|
|
|
3379
|
-
<code class="param-type">
|
|
3380
|
+
<code class="param-type">Promise.<object></code>
|
|
3380
3381
|
|
|
3381
3382
|
|
|
3382
3383
|
</div>
|
|
@@ -3396,12 +3397,12 @@ const stepHistory = await api.user.process.getStepHistory(params, session);</cod
|
|
|
3396
3397
|
<pre class="prettyprint"><code>const API = require('@docbrasil/api-systemmanager');
|
|
3397
3398
|
const api = new API();
|
|
3398
3399
|
const params = {
|
|
3399
|
-
|
|
3400
|
-
|
|
3401
|
-
|
|
3400
|
+
processId: '5dadd01dc4af3941d42f8c5c',
|
|
3401
|
+
orgId: '5edd11c46b6ce9729c2c297c',
|
|
3402
|
+
flowName: 'Task_1'
|
|
3402
3403
|
};
|
|
3403
3404
|
const session = 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...';
|
|
3404
|
-
|
|
3405
|
+
await api.user.process.reexecute(params, session);</code></pre>
|
|
3405
3406
|
|
|
3406
3407
|
|
|
3407
3408
|
|
|
@@ -3411,8 +3412,8 @@ const retSearch = await api.user.process.processDocs(params, session);</code></p
|
|
|
3411
3412
|
|
|
3412
3413
|
|
|
3413
3414
|
|
|
3414
|
-
<h4 class="name" id="
|
|
3415
|
-
<a class="href-link" href="#
|
|
3415
|
+
<h4 class="name" id="reexecuteTask">
|
|
3416
|
+
<a class="href-link" href="#reexecuteTask">#</a>
|
|
3416
3417
|
|
|
3417
3418
|
|
|
3418
3419
|
<span class='tag'>async</span>
|
|
@@ -3420,7 +3421,7 @@ const retSearch = await api.user.process.processDocs(params, session);</code></p
|
|
|
3420
3421
|
|
|
3421
3422
|
<span class="code-name">
|
|
3422
3423
|
|
|
3423
|
-
|
|
3424
|
+
reexecuteTask<span class="signature">(params, session)</span><span class="type-signature"> → {Promise.<object>}</span>
|
|
3424
3425
|
|
|
3425
3426
|
</span>
|
|
3426
3427
|
</h4>
|
|
@@ -3429,7 +3430,9 @@ const retSearch = await api.user.process.processDocs(params, session);</code></p
|
|
|
3429
3430
|
|
|
3430
3431
|
|
|
3431
3432
|
<div class="description">
|
|
3432
|
-
|
|
3433
|
+
Re-execute a specific user task step in a running process, creating a new task
|
|
3434
|
+
synchronously with optional userId reassignment. For non-group tasks, the task is reassigned
|
|
3435
|
+
to the current logged-in user. For group tasks, the original assignment is preserved.
|
|
3433
3436
|
</div>
|
|
3434
3437
|
|
|
3435
3438
|
|
|
@@ -3483,12 +3486,35 @@ const retSearch = await api.user.process.processDocs(params, session);</code></p
|
|
|
3483
3486
|
|
|
3484
3487
|
|
|
3485
3488
|
|
|
3486
|
-
<td class="description last">Params to
|
|
3489
|
+
<td class="description last">Params to re-execute the task</td>
|
|
3487
3490
|
</tr>
|
|
3488
3491
|
|
|
3489
3492
|
|
|
3490
3493
|
|
|
3491
3494
|
|
|
3495
|
+
<tr class="deep-level-1">
|
|
3496
|
+
|
|
3497
|
+
<td class="name"><code>processId</code></td>
|
|
3498
|
+
|
|
3499
|
+
|
|
3500
|
+
<td class="type">
|
|
3501
|
+
|
|
3502
|
+
|
|
3503
|
+
<code class="param-type">string</code>
|
|
3504
|
+
|
|
3505
|
+
|
|
3506
|
+
|
|
3507
|
+
</td>
|
|
3508
|
+
|
|
3509
|
+
|
|
3510
|
+
|
|
3511
|
+
|
|
3512
|
+
|
|
3513
|
+
<td class="description last">Process id (_id database);</td>
|
|
3514
|
+
</tr>
|
|
3515
|
+
|
|
3516
|
+
|
|
3517
|
+
|
|
3492
3518
|
<tr class="deep-level-1">
|
|
3493
3519
|
|
|
3494
3520
|
<td class="name"><code>orgId</code></td>
|
|
@@ -3497,7 +3523,7 @@ const retSearch = await api.user.process.processDocs(params, session);</code></p
|
|
|
3497
3523
|
<td class="type">
|
|
3498
3524
|
|
|
3499
3525
|
|
|
3500
|
-
<code class="param-type">
|
|
3526
|
+
<code class="param-type">string</code>
|
|
3501
3527
|
|
|
3502
3528
|
|
|
3503
3529
|
|
|
@@ -3507,20 +3533,20 @@ const retSearch = await api.user.process.processDocs(params, session);</code></p
|
|
|
3507
3533
|
|
|
3508
3534
|
|
|
3509
3535
|
|
|
3510
|
-
<td class="description last">Organization id (_id database)
|
|
3536
|
+
<td class="description last">Organization id (_id database);</td>
|
|
3511
3537
|
</tr>
|
|
3512
3538
|
|
|
3513
3539
|
|
|
3514
3540
|
|
|
3515
3541
|
<tr class="deep-level-1">
|
|
3516
3542
|
|
|
3517
|
-
<td class="name"><code>
|
|
3543
|
+
<td class="name"><code>flowName</code></td>
|
|
3518
3544
|
|
|
3519
3545
|
|
|
3520
3546
|
<td class="type">
|
|
3521
3547
|
|
|
3522
3548
|
|
|
3523
|
-
<code class="param-type">
|
|
3549
|
+
<code class="param-type">string</code>
|
|
3524
3550
|
|
|
3525
3551
|
|
|
3526
3552
|
|
|
@@ -3530,7 +3556,7 @@ const retSearch = await api.user.process.processDocs(params, session);</code></p
|
|
|
3530
3556
|
|
|
3531
3557
|
|
|
3532
3558
|
|
|
3533
|
-
<td class="description last">
|
|
3559
|
+
<td class="description last">The flow name of the user task step to re-execute;</td>
|
|
3534
3560
|
</tr>
|
|
3535
3561
|
|
|
3536
3562
|
|
|
@@ -3612,7 +3638,7 @@ const retSearch = await api.user.process.processDocs(params, session);</code></p
|
|
|
3612
3638
|
<p class="tag-source">
|
|
3613
3639
|
<a href="user_process.js.html" class="button">View Source</a>
|
|
3614
3640
|
<span>
|
|
3615
|
-
<a href="user_process.js.html">user/process.js</a>, <a href="user_process.js.html#
|
|
3641
|
+
<a href="user_process.js.html">user/process.js</a>, <a href="user_process.js.html#line690">line 690</a>
|
|
3616
3642
|
</span>
|
|
3617
3643
|
</p>
|
|
3618
3644
|
|
|
@@ -3635,6 +3661,31 @@ const retSearch = await api.user.process.processDocs(params, session);</code></p
|
|
|
3635
3661
|
|
|
3636
3662
|
|
|
3637
3663
|
|
|
3664
|
+
<div class='columns method-parameter'>
|
|
3665
|
+
<div class="column is-2"><label>Returns:</label></div>
|
|
3666
|
+
<div class="column is-10">
|
|
3667
|
+
|
|
3668
|
+
|
|
3669
|
+
|
|
3670
|
+
<div class="columns">
|
|
3671
|
+
|
|
3672
|
+
<div class='param-desc column is-7'>{ response: 'OK', taskId } on success</div>
|
|
3673
|
+
|
|
3674
|
+
|
|
3675
|
+
<div class='column is-5 has-text-left'>
|
|
3676
|
+
<label>Type: </label>
|
|
3677
|
+
|
|
3678
|
+
<code class="param-type">Promise.<object></code>
|
|
3679
|
+
|
|
3680
|
+
|
|
3681
|
+
</div>
|
|
3682
|
+
|
|
3683
|
+
</div>
|
|
3684
|
+
|
|
3685
|
+
|
|
3686
|
+
</div>
|
|
3687
|
+
</div>
|
|
3688
|
+
|
|
3638
3689
|
|
|
3639
3690
|
|
|
3640
3691
|
|
|
@@ -3644,11 +3695,557 @@ const retSearch = await api.user.process.processDocs(params, session);</code></p
|
|
|
3644
3695
|
<pre class="prettyprint"><code>const API = require('@docbrasil/api-systemmanager');
|
|
3645
3696
|
const api = new API();
|
|
3646
3697
|
const params = {
|
|
3647
|
-
|
|
3648
|
-
|
|
3698
|
+
processId: '5dadd01dc4af3941d42f8c5c',
|
|
3699
|
+
orgId: '5edd11c46b6ce9729c2c297c',
|
|
3700
|
+
flowName: 'Task_1'
|
|
3649
3701
|
};
|
|
3650
3702
|
const session = 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...';
|
|
3651
|
-
const
|
|
3703
|
+
const result = await api.user.process.reexecuteTask(params, session);
|
|
3704
|
+
console.log(result.taskId);</code></pre>
|
|
3705
|
+
|
|
3706
|
+
|
|
3707
|
+
|
|
3708
|
+
</div>
|
|
3709
|
+
|
|
3710
|
+
<div class="member">
|
|
3711
|
+
|
|
3712
|
+
|
|
3713
|
+
|
|
3714
|
+
<h4 class="name" id="remove">
|
|
3715
|
+
<a class="href-link" href="#remove">#</a>
|
|
3716
|
+
|
|
3717
|
+
|
|
3718
|
+
<span class='tag'>async</span>
|
|
3719
|
+
|
|
3720
|
+
|
|
3721
|
+
<span class="code-name">
|
|
3722
|
+
|
|
3723
|
+
remove<span class="signature">(params, session)</span><span class="type-signature"></span>
|
|
3724
|
+
|
|
3725
|
+
</span>
|
|
3726
|
+
</h4>
|
|
3727
|
+
|
|
3728
|
+
|
|
3729
|
+
|
|
3730
|
+
|
|
3731
|
+
<div class="description">
|
|
3732
|
+
Method to remove process
|
|
3733
|
+
</div>
|
|
3734
|
+
|
|
3735
|
+
|
|
3736
|
+
|
|
3737
|
+
|
|
3738
|
+
|
|
3739
|
+
|
|
3740
|
+
|
|
3741
|
+
|
|
3742
|
+
|
|
3743
|
+
|
|
3744
|
+
<h5>Parameters:</h5>
|
|
3745
|
+
|
|
3746
|
+
<div class="table-container">
|
|
3747
|
+
<table class="params table">
|
|
3748
|
+
<thead>
|
|
3749
|
+
<tr>
|
|
3750
|
+
|
|
3751
|
+
<th>Name</th>
|
|
3752
|
+
|
|
3753
|
+
|
|
3754
|
+
<th>Type</th>
|
|
3755
|
+
|
|
3756
|
+
|
|
3757
|
+
|
|
3758
|
+
|
|
3759
|
+
|
|
3760
|
+
<th class="last">Description</th>
|
|
3761
|
+
</tr>
|
|
3762
|
+
</thead>
|
|
3763
|
+
|
|
3764
|
+
<tbody>
|
|
3765
|
+
|
|
3766
|
+
|
|
3767
|
+
|
|
3768
|
+
<tr class="deep-level-0">
|
|
3769
|
+
|
|
3770
|
+
<td class="name"><code>params</code></td>
|
|
3771
|
+
|
|
3772
|
+
|
|
3773
|
+
<td class="type">
|
|
3774
|
+
|
|
3775
|
+
|
|
3776
|
+
<code class="param-type">object</code>
|
|
3777
|
+
|
|
3778
|
+
|
|
3779
|
+
|
|
3780
|
+
</td>
|
|
3781
|
+
|
|
3782
|
+
|
|
3783
|
+
|
|
3784
|
+
|
|
3785
|
+
|
|
3786
|
+
<td class="description last">Params to remove process</td>
|
|
3787
|
+
</tr>
|
|
3788
|
+
|
|
3789
|
+
|
|
3790
|
+
|
|
3791
|
+
|
|
3792
|
+
<tr class="deep-level-1">
|
|
3793
|
+
|
|
3794
|
+
<td class="name"><code>orgId</code></td>
|
|
3795
|
+
|
|
3796
|
+
|
|
3797
|
+
<td class="type">
|
|
3798
|
+
|
|
3799
|
+
|
|
3800
|
+
<code class="param-type">object</code>
|
|
3801
|
+
|
|
3802
|
+
|
|
3803
|
+
|
|
3804
|
+
</td>
|
|
3805
|
+
|
|
3806
|
+
|
|
3807
|
+
|
|
3808
|
+
|
|
3809
|
+
|
|
3810
|
+
<td class="description last">Organization id (_id database)</td>
|
|
3811
|
+
</tr>
|
|
3812
|
+
|
|
3813
|
+
|
|
3814
|
+
|
|
3815
|
+
<tr class="deep-level-1">
|
|
3816
|
+
|
|
3817
|
+
<td class="name"><code>processId</code></td>
|
|
3818
|
+
|
|
3819
|
+
|
|
3820
|
+
<td class="type">
|
|
3821
|
+
|
|
3822
|
+
|
|
3823
|
+
<code class="param-type">object</code>
|
|
3824
|
+
|
|
3825
|
+
|
|
3826
|
+
|
|
3827
|
+
</td>
|
|
3828
|
+
|
|
3829
|
+
|
|
3830
|
+
|
|
3831
|
+
|
|
3832
|
+
|
|
3833
|
+
<td class="description last">Process id (_id database)</td>
|
|
3834
|
+
</tr>
|
|
3835
|
+
|
|
3836
|
+
|
|
3837
|
+
|
|
3838
|
+
|
|
3839
|
+
|
|
3840
|
+
|
|
3841
|
+
|
|
3842
|
+
<tr class="deep-level-0">
|
|
3843
|
+
|
|
3844
|
+
<td class="name"><code>session</code></td>
|
|
3845
|
+
|
|
3846
|
+
|
|
3847
|
+
<td class="type">
|
|
3848
|
+
|
|
3849
|
+
|
|
3850
|
+
<code class="param-type">string</code>
|
|
3851
|
+
|
|
3852
|
+
|
|
3853
|
+
|
|
3854
|
+
</td>
|
|
3855
|
+
|
|
3856
|
+
|
|
3857
|
+
|
|
3858
|
+
|
|
3859
|
+
|
|
3860
|
+
<td class="description last">Session, token JWT</td>
|
|
3861
|
+
</tr>
|
|
3862
|
+
|
|
3863
|
+
|
|
3864
|
+
|
|
3865
|
+
</tbody>
|
|
3866
|
+
</table>
|
|
3867
|
+
</div>
|
|
3868
|
+
|
|
3869
|
+
|
|
3870
|
+
|
|
3871
|
+
|
|
3872
|
+
|
|
3873
|
+
<dl class="details">
|
|
3874
|
+
|
|
3875
|
+
|
|
3876
|
+
|
|
3877
|
+
|
|
3878
|
+
|
|
3879
|
+
|
|
3880
|
+
|
|
3881
|
+
|
|
3882
|
+
|
|
3883
|
+
|
|
3884
|
+
|
|
3885
|
+
|
|
3886
|
+
|
|
3887
|
+
|
|
3888
|
+
|
|
3889
|
+
|
|
3890
|
+
|
|
3891
|
+
|
|
3892
|
+
<dt class="tag-author">Author:</dt>
|
|
3893
|
+
<dd class="tag-author">
|
|
3894
|
+
<ul>
|
|
3895
|
+
<li><a href="mailto:augusto.pissarra@myndware.com">Myndware</a></li>
|
|
3896
|
+
</ul>
|
|
3897
|
+
</dd>
|
|
3898
|
+
|
|
3899
|
+
|
|
3900
|
+
|
|
3901
|
+
|
|
3902
|
+
|
|
3903
|
+
|
|
3904
|
+
|
|
3905
|
+
|
|
3906
|
+
|
|
3907
|
+
|
|
3908
|
+
|
|
3909
|
+
|
|
3910
|
+
|
|
3911
|
+
|
|
3912
|
+
<p class="tag-source">
|
|
3913
|
+
<a href="user_process.js.html" class="button">View Source</a>
|
|
3914
|
+
<span>
|
|
3915
|
+
<a href="user_process.js.html">user/process.js</a>, <a href="user_process.js.html#line253">line 253</a>
|
|
3916
|
+
</span>
|
|
3917
|
+
</p>
|
|
3918
|
+
|
|
3919
|
+
</dl>
|
|
3920
|
+
|
|
3921
|
+
|
|
3922
|
+
|
|
3923
|
+
|
|
3924
|
+
|
|
3925
|
+
|
|
3926
|
+
|
|
3927
|
+
|
|
3928
|
+
|
|
3929
|
+
|
|
3930
|
+
|
|
3931
|
+
|
|
3932
|
+
|
|
3933
|
+
|
|
3934
|
+
|
|
3935
|
+
|
|
3936
|
+
|
|
3937
|
+
|
|
3938
|
+
|
|
3939
|
+
|
|
3940
|
+
|
|
3941
|
+
<h5>Example</h5>
|
|
3942
|
+
|
|
3943
|
+
|
|
3944
|
+
<pre class="prettyprint"><code>const API = require('@docbrasil/api-systemmanager');
|
|
3945
|
+
const api = new API();
|
|
3946
|
+
const params = {
|
|
3947
|
+
orgId: '55e4a3bd6be6b45210833fae',
|
|
3948
|
+
processId: '55e4a3bd6be6b45210833fae'
|
|
3949
|
+
};
|
|
3950
|
+
const session = 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...';
|
|
3951
|
+
const retSearch = await api.user.process.remove(params, session);</code></pre>
|
|
3952
|
+
|
|
3953
|
+
|
|
3954
|
+
|
|
3955
|
+
</div>
|
|
3956
|
+
|
|
3957
|
+
<div class="member">
|
|
3958
|
+
|
|
3959
|
+
|
|
3960
|
+
|
|
3961
|
+
<h4 class="name" id="restart">
|
|
3962
|
+
<a class="href-link" href="#restart">#</a>
|
|
3963
|
+
|
|
3964
|
+
|
|
3965
|
+
<span class='tag'>async</span>
|
|
3966
|
+
|
|
3967
|
+
|
|
3968
|
+
<span class="code-name">
|
|
3969
|
+
|
|
3970
|
+
restart<span class="signature">(params, session)</span><span class="type-signature"> → {Promise.<object>}</span>
|
|
3971
|
+
|
|
3972
|
+
</span>
|
|
3973
|
+
</h4>
|
|
3974
|
+
|
|
3975
|
+
|
|
3976
|
+
|
|
3977
|
+
|
|
3978
|
+
<div class="description">
|
|
3979
|
+
Restart a finished process from a specific flow step. Resets the process completion state
|
|
3980
|
+
and triggers re-execution from the specified flow name.
|
|
3981
|
+
</div>
|
|
3982
|
+
|
|
3983
|
+
|
|
3984
|
+
|
|
3985
|
+
|
|
3986
|
+
|
|
3987
|
+
|
|
3988
|
+
|
|
3989
|
+
|
|
3990
|
+
|
|
3991
|
+
|
|
3992
|
+
<h5>Parameters:</h5>
|
|
3993
|
+
|
|
3994
|
+
<div class="table-container">
|
|
3995
|
+
<table class="params table">
|
|
3996
|
+
<thead>
|
|
3997
|
+
<tr>
|
|
3998
|
+
|
|
3999
|
+
<th>Name</th>
|
|
4000
|
+
|
|
4001
|
+
|
|
4002
|
+
<th>Type</th>
|
|
4003
|
+
|
|
4004
|
+
|
|
4005
|
+
|
|
4006
|
+
|
|
4007
|
+
|
|
4008
|
+
<th class="last">Description</th>
|
|
4009
|
+
</tr>
|
|
4010
|
+
</thead>
|
|
4011
|
+
|
|
4012
|
+
<tbody>
|
|
4013
|
+
|
|
4014
|
+
|
|
4015
|
+
|
|
4016
|
+
<tr class="deep-level-0">
|
|
4017
|
+
|
|
4018
|
+
<td class="name"><code>params</code></td>
|
|
4019
|
+
|
|
4020
|
+
|
|
4021
|
+
<td class="type">
|
|
4022
|
+
|
|
4023
|
+
|
|
4024
|
+
<code class="param-type">object</code>
|
|
4025
|
+
|
|
4026
|
+
|
|
4027
|
+
|
|
4028
|
+
</td>
|
|
4029
|
+
|
|
4030
|
+
|
|
4031
|
+
|
|
4032
|
+
|
|
4033
|
+
|
|
4034
|
+
<td class="description last">Params to restart the process</td>
|
|
4035
|
+
</tr>
|
|
4036
|
+
|
|
4037
|
+
|
|
4038
|
+
|
|
4039
|
+
|
|
4040
|
+
<tr class="deep-level-1">
|
|
4041
|
+
|
|
4042
|
+
<td class="name"><code>processId</code></td>
|
|
4043
|
+
|
|
4044
|
+
|
|
4045
|
+
<td class="type">
|
|
4046
|
+
|
|
4047
|
+
|
|
4048
|
+
<code class="param-type">string</code>
|
|
4049
|
+
|
|
4050
|
+
|
|
4051
|
+
|
|
4052
|
+
</td>
|
|
4053
|
+
|
|
4054
|
+
|
|
4055
|
+
|
|
4056
|
+
|
|
4057
|
+
|
|
4058
|
+
<td class="description last">Process id (_id database);</td>
|
|
4059
|
+
</tr>
|
|
4060
|
+
|
|
4061
|
+
|
|
4062
|
+
|
|
4063
|
+
<tr class="deep-level-1">
|
|
4064
|
+
|
|
4065
|
+
<td class="name"><code>orgId</code></td>
|
|
4066
|
+
|
|
4067
|
+
|
|
4068
|
+
<td class="type">
|
|
4069
|
+
|
|
4070
|
+
|
|
4071
|
+
<code class="param-type">string</code>
|
|
4072
|
+
|
|
4073
|
+
|
|
4074
|
+
|
|
4075
|
+
</td>
|
|
4076
|
+
|
|
4077
|
+
|
|
4078
|
+
|
|
4079
|
+
|
|
4080
|
+
|
|
4081
|
+
<td class="description last">Organization id (_id database);</td>
|
|
4082
|
+
</tr>
|
|
4083
|
+
|
|
4084
|
+
|
|
4085
|
+
|
|
4086
|
+
<tr class="deep-level-1">
|
|
4087
|
+
|
|
4088
|
+
<td class="name"><code>flowName</code></td>
|
|
4089
|
+
|
|
4090
|
+
|
|
4091
|
+
<td class="type">
|
|
4092
|
+
|
|
4093
|
+
|
|
4094
|
+
<code class="param-type">string</code>
|
|
4095
|
+
|
|
4096
|
+
|
|
4097
|
+
|
|
4098
|
+
</td>
|
|
4099
|
+
|
|
4100
|
+
|
|
4101
|
+
|
|
4102
|
+
|
|
4103
|
+
|
|
4104
|
+
<td class="description last">The flow name of the step to restart from;</td>
|
|
4105
|
+
</tr>
|
|
4106
|
+
|
|
4107
|
+
|
|
4108
|
+
|
|
4109
|
+
|
|
4110
|
+
|
|
4111
|
+
|
|
4112
|
+
|
|
4113
|
+
<tr class="deep-level-0">
|
|
4114
|
+
|
|
4115
|
+
<td class="name"><code>session</code></td>
|
|
4116
|
+
|
|
4117
|
+
|
|
4118
|
+
<td class="type">
|
|
4119
|
+
|
|
4120
|
+
|
|
4121
|
+
<code class="param-type">string</code>
|
|
4122
|
+
|
|
4123
|
+
|
|
4124
|
+
|
|
4125
|
+
</td>
|
|
4126
|
+
|
|
4127
|
+
|
|
4128
|
+
|
|
4129
|
+
|
|
4130
|
+
|
|
4131
|
+
<td class="description last">Session, token JWT</td>
|
|
4132
|
+
</tr>
|
|
4133
|
+
|
|
4134
|
+
|
|
4135
|
+
|
|
4136
|
+
</tbody>
|
|
4137
|
+
</table>
|
|
4138
|
+
</div>
|
|
4139
|
+
|
|
4140
|
+
|
|
4141
|
+
|
|
4142
|
+
|
|
4143
|
+
|
|
4144
|
+
<dl class="details">
|
|
4145
|
+
|
|
4146
|
+
|
|
4147
|
+
|
|
4148
|
+
|
|
4149
|
+
|
|
4150
|
+
|
|
4151
|
+
|
|
4152
|
+
|
|
4153
|
+
|
|
4154
|
+
|
|
4155
|
+
|
|
4156
|
+
|
|
4157
|
+
|
|
4158
|
+
|
|
4159
|
+
|
|
4160
|
+
|
|
4161
|
+
|
|
4162
|
+
|
|
4163
|
+
<dt class="tag-author">Author:</dt>
|
|
4164
|
+
<dd class="tag-author">
|
|
4165
|
+
<ul>
|
|
4166
|
+
<li><a href="mailto:augusto.pissarra@myndware.com">Myndware</a></li>
|
|
4167
|
+
</ul>
|
|
4168
|
+
</dd>
|
|
4169
|
+
|
|
4170
|
+
|
|
4171
|
+
|
|
4172
|
+
|
|
4173
|
+
|
|
4174
|
+
|
|
4175
|
+
|
|
4176
|
+
|
|
4177
|
+
|
|
4178
|
+
|
|
4179
|
+
|
|
4180
|
+
|
|
4181
|
+
|
|
4182
|
+
|
|
4183
|
+
<p class="tag-source">
|
|
4184
|
+
<a href="user_process.js.html" class="button">View Source</a>
|
|
4185
|
+
<span>
|
|
4186
|
+
<a href="user_process.js.html">user/process.js</a>, <a href="user_process.js.html#line604">line 604</a>
|
|
4187
|
+
</span>
|
|
4188
|
+
</p>
|
|
4189
|
+
|
|
4190
|
+
</dl>
|
|
4191
|
+
|
|
4192
|
+
|
|
4193
|
+
|
|
4194
|
+
|
|
4195
|
+
|
|
4196
|
+
|
|
4197
|
+
|
|
4198
|
+
|
|
4199
|
+
|
|
4200
|
+
|
|
4201
|
+
|
|
4202
|
+
|
|
4203
|
+
|
|
4204
|
+
|
|
4205
|
+
|
|
4206
|
+
|
|
4207
|
+
|
|
4208
|
+
|
|
4209
|
+
<div class='columns method-parameter'>
|
|
4210
|
+
<div class="column is-2"><label>Returns:</label></div>
|
|
4211
|
+
<div class="column is-10">
|
|
4212
|
+
|
|
4213
|
+
|
|
4214
|
+
|
|
4215
|
+
<div class="columns">
|
|
4216
|
+
|
|
4217
|
+
<div class='param-desc column is-7'>{ response: 'OK' } on success</div>
|
|
4218
|
+
|
|
4219
|
+
|
|
4220
|
+
<div class='column is-5 has-text-left'>
|
|
4221
|
+
<label>Type: </label>
|
|
4222
|
+
|
|
4223
|
+
<code class="param-type">Promise.<object></code>
|
|
4224
|
+
|
|
4225
|
+
|
|
4226
|
+
</div>
|
|
4227
|
+
|
|
4228
|
+
</div>
|
|
4229
|
+
|
|
4230
|
+
|
|
4231
|
+
</div>
|
|
4232
|
+
</div>
|
|
4233
|
+
|
|
4234
|
+
|
|
4235
|
+
|
|
4236
|
+
|
|
4237
|
+
<h5>Example</h5>
|
|
4238
|
+
|
|
4239
|
+
|
|
4240
|
+
<pre class="prettyprint"><code>const API = require('@docbrasil/api-systemmanager');
|
|
4241
|
+
const api = new API();
|
|
4242
|
+
const params = {
|
|
4243
|
+
processId: '5dadd01dc4af3941d42f8c5c',
|
|
4244
|
+
orgId: '5edd11c46b6ce9729c2c297c',
|
|
4245
|
+
flowName: 'Task_1'
|
|
4246
|
+
};
|
|
4247
|
+
const session = 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...';
|
|
4248
|
+
await api.user.process.restart(params, session);</code></pre>
|
|
3652
4249
|
|
|
3653
4250
|
|
|
3654
4251
|
|