Risk Assessment Calculation
This workflow is included in the Risk Assessment module.
Description
This workflow has no description.
Properties
This workflow has the following properties.
| Property | Value |
|---|---|
| Name | Risk Assessment Calculation |
| Code | workflows_riskAssessmentCalculation |
| Type | Workflow |
| Context | Module |
| Enabled | Yes |
Trigger
The system triggers this workflow when items of the design below are created or edited. Where attributes are listed, an edit to anything else is ignored.
| Property | Value |
|---|---|
| Workflow type | Event workflow |
| Applies to | Risk Assessment |
| Events | Create, Edit |
| Collections | Live |
| Attributes listened for | attributes_riskAssessmentRiskLikelihood (Risk Likelihood)attributes_riskAssessmentRiskConsequence (Risk Consequence) |
Actions
This workflow runs 3 actions, in the order shown in this simplified diagram. Every action's full settings are in the configuration below.
Configuration
The full configuration of this workflow, including every action's parameters.
Show configuration (152 lines)
{
"trigger": {
"dodiCode": "designInterfaces_riskAssessment",
"collections": [
"Live"
],
"events": [
"Create",
"Edit"
],
"attributesListeningFor": [
"attributes_riskAssessmentRiskLikelihood",
"attributes_riskAssessmentRiskConsequence"
]
},
"actions": [
{
"designCode": "designs_workflowRelationAction",
"actions": [],
"parameters": [
{
"attribute": {
"attributeCode": "attributes_workflowRelationActionsAqsPath",
"value": "root.attributes_riskAssessmentRiskConsequence"
}
}
],
"variables": [],
"actionId": "5f997006ddd7e11ec06a524e"
},
{
"designCode": "designs_workflowRelationAction",
"actions": [],
"parameters": [
{
"attribute": {
"attributeCode": "attributes_workflowRelationActionsAqsPath",
"value": "root.attributes_riskAssessmentRiskLikelihood"
}
}
],
"variables": [],
"actionId": "5f997006ddd7e11ec06a524f"
},
{
"designCode": "designs_workflowEditItemAction",
"actions": [],
"parameters": [
{
"attributeCode": "attributes_riskAssessmentRiskScore",
"attributeType": "Number",
"value": {
"inputParent": 0,
"itemValue": {
"variableName": "riskScore"
}
}
},
{
"attributeCode": "attributes_riskAssessmentRiskSeverity",
"attributeType": "Link",
"value": {
"aqs": {
"type": "Query",
"properties": {
"dodiCode": "designs_riskSeverityLevels",
"parameters": [
{
"Name": "riskScore",
"Type": 0,
"DefaultValue": null
}
]
},
"children": [
{
"type": "And",
"children": [
{
"type": "LessThan",
"children": [
{
"type": "Number",
"properties": {
"parameterName": "riskScore"
}
},
{
"type": "Attribute",
"properties": {
"attributeCode": "attributes_riskSeverityLevelsMaxValue"
}
}
]
},
{
"type": "GreaterThan",
"properties": {
"inclusive": true
},
"children": [
{
"type": "Number",
"properties": {
"parameterName": "riskScore"
}
},
{
"type": "Attribute",
"properties": {
"attributeCode": "attributes_riskSeverityLevelsMinValue"
}
}
]
}
]
}
]
}
}
}
],
"variables": [
{
"name": "likelihoodValue",
"value": {
"outputAction": "5f997006ddd7e11ec06a524f",
"itemValue": {
"attributeCode": "attributes_riskLikelihoodLevelsValue"
}
}
},
{
"name": "consequenceValue",
"value": {
"outputAction": "5f997006ddd7e11ec06a524e",
"itemValue": {
"attributeCode": "attributes_riskConsequenceLevelsValue"
}
}
},
{
"name": "riskScore",
"value": {
"script": "likelihoodValue*consequenceValue"
}
}
],
"actionId": "5f997006ddd7e11ec06a5250"
}
]
}