I have different nodes in my Neo4J database. Each type of node has various fields attached to it. A node of type THREAT has the following properties:
id
description
impact
name
rating
I have the values of all the properties except the rating at the time of the creation of nodes. It is because the rating property depends on values from other nodes, or the application will send it to neo4j.
An example of a Threat node script to create it:
(t_repudiate: THREAT {name: "NON_REPUDIATION", desc: "Break Non-repudiation", impact: "Repudiate Transactions", rating: ""}),
An example of a rating condition is as follows:
- rating of NON_REPUDIATION is high if PII/PHI > 5,000.
- rating of NON_REPUDIATION is high if integrity requirement is (high or critical)
Is there any way I could achieve this using the Neo4J script?