This method allows adding and deleting a risk analysis, or adding an attachment to a risk analysis, through a REST Web Service. It is only allowed to add or edit a risk analysis that is linked to a plan in preparation, for the approved plans it is not possible to add or edit the data of the risk analysis.
Input parameters
|
ID #
|
Constant value
|
Parameter
|
Type
|
Description
|
cdprod
|
215
|
QUERY
|
NUMERIC
|
Product code
|
classname
|
ris_riskanalysis_interface
|
QUERY
|
STRING
|
Class name used in WADL
|
classpath
|
ri_import
|
QUERY
|
STRING
|
Path to the class used in WADL
|
Request body
|
{
"idrisk": "string",
"idplan": "string",
"cdriskresp": "string",
"cdriskteam": "string",
"gnara_cdassoc": "string",
"idriskanalysis": "string",
"dtnexteval": "string",
"qtpendecy": 1,
"cdtreatment": "string",
"cdmeasunity": "string",
"vlapetite": 1.1,
"vltotal": 1.1,
"vltolerance": 1.1,
"dsriskanalysis": "string",
"instance": "string",
"idact": "string",
"action": 1
}
|
Request body for deletion
|
{
"idriskanalysis": "string",
"idplan": "string",
"action": 3
}
|
Output parameter
|
{
"success": true,
"total": 1,
"results": [
{
"Result": true,
"Code": 1
}
]
}
|
To enter each of these request items it is necessary to follow the pattern documented below.
Request
|
ID #
|
Required
|
Description
|
idrisk
|
X1
|
Risk ID #
|
idplan
|
X
|
Plan ID #
|
cdriskresp
|
X1
|
Responsible ID #
|
cdriskteam
|
|
Responsible team ID #.
|
idriskanalysis
|
X2
|
Risk analysis ID #
|
gnara_cdassoc
|
|
Element ID # superior to the risk
|
dtnexteval
|
|
Next evaluation date
|
qtpendecy
|
|
Execution deadline
|
cdtreatment
|
|
Treatment ID #
|
cdmeasunity
|
|
Measurement unit ID #
|
vltotal
|
|
Value of other losses
|
vlapetite
|
|
Risk appetite value
|
vltolerance
|
|
Risk tolerance value
|
dsriskanalysis
|
|
Risk analysis description
|
instance
|
|
CONSTANT VALUE: %WF_IDINSTANCE%
|
idact
|
|
Instance activity ID #
|
action
|
|
The action type that will be performed on the screen:
1 – Insert
3 – Delete
|
|