Skip to main content

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.

PropertyValue
NameRisk Assessment Calculation
Codeworkflows_riskAssessmentCalculation
TypeWorkflow
ContextModule
EnabledYes

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.

PropertyValue
Workflow typeEvent workflow
Applies toRisk Assessment
EventsCreate, Edit
CollectionsLive
Attributes listened forattributes_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"
}
]
}