Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0044164Openbravo ERPA. Platformpublic2020-05-22 13:282020-06-08 16:18
alostale 
alostale 
normalminorhave not tried
closedfixed 
5
 
PR20Q3 
caristu
Core
No
0044164: make it possible to add information to process definition payload on client side
Currently it is possible to define a client side validation to be executed before a process definition invokes the backend process [1]. This validation can either stop or continue the process, but in case of continuing it cannot modify the payload the backed will receive.

In some cases this can be useful.

[1] http://wiki.openbravo.com/wiki/How_to_create_a_Standard_Process_Definition#Invoking_a_client_side_validation_before_calling_the_action_handler [^]
-
No tags attached.
Issue History
2020-05-22 13:28alostaleNew Issue
2020-05-22 13:28alostaleAssigned To => platform
2020-05-22 13:28alostaleModules => Core
2020-05-22 13:28alostaleTriggers an Emergency Pack => No
2020-05-22 13:33alostaleSummarymake it possible to change process definition payload on client side => make it possible to add information to process definition payload on client side
2020-05-22 13:46alostaleAssigned Toplatform => alostale
2020-05-22 13:46alostaleStatusnew => scheduled
2020-05-22 13:47alostaleNote Added: 0120183
2020-05-22 13:47alostaleReview Assigned To => caristu
2020-05-28 10:18hgbotCheckin
2020-05-28 10:18hgbotNote Added: 0120384
2020-05-28 10:18hgbotStatusscheduled => resolved
2020-05-28 10:18hgbotResolutionopen => fixed
2020-05-28 10:18hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/ef15eaf93ebce131d0ce41f219fc47cfde9639a1 [^]
2020-06-08 16:18caristuNote Added: 0120743
2020-06-08 16:18caristuStatusresolved => closed
2020-06-08 16:18caristuFixed in Version => 3.0PR20Q3

Notes
(0120183)
alostale   
2020-05-22 13:47   
MR: https://gitlab.com/openbravo/product/openbravo/-/merge_requests/75 [^]
(0120384)
hgbot   
2020-05-28 10:18   
Repository: erp/devel/pi
Changeset: ef15eaf93ebce131d0ce41f219fc47cfde9639a1
Author: Asier Lostalé <asier.lostale <at> openbravo.com>
Date: Fri May 22 13:29:42 2020 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/ef15eaf93ebce131d0ce41f219fc47cfde9639a1 [^]

fixed FR-44164: make it possible to add info to process definition payload

Before it was possible for a process definintion to include additional
parameters calculated in a JavaScript function by using the view's
externalParams property.

This feature could not be used to add information to the payload based
on current paramteters as the way to inject JavaScript code is through a
client side validation which is executed after the payload is
calucalted.

Now additional paramters are added to the payload just before invoking
the server, in this way client side validation can be used also to add
information to the payload.

---
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/process/ob-parameter-window-view.js
---
(0120743)
caristu   
2020-06-08 16:18   
Reviewed