@@ -30,13 +30,61 @@ described in the URL above that the URL can be overwritten locally with an HTTPS
30
30
Check the [ Development] ( DEVELOPMENT.md ) page for more detail information how to work with this repository, because of
31
31
the mixture with RiseClipse.
32
32
33
+ ## Custom OCL Files
34
+
35
+ There is a way to add custom OCL Files to the validator, for instance to force company specific rules. In the Docker
36
+ Image there is a volume ` /data/ocl ` which can be used to add these files, see our compas-deployment project for an
37
+ example how to.
38
+
39
+ In this directory, you can use subdirectories like ` SemanticConstraints ` as RiseClipse is doing. And there is a special
40
+ filter that when you create a directory ` FileSpecifics ` . In this directory you can create for instance a directory ` CID `
41
+ to put constraints specific for an SCL File Type. Known types are ` SSD ` , ` IID ` , ` ICD ` , ` SCD ` , ` CID ` , ` SED ` , ` ISD ` ,
42
+ ` STD ` .
43
+
44
+ For instance,
45
+
46
+ ```
47
+ data
48
+ └── ocl
49
+ ├── FileSpecifics
50
+ │ └── CID
51
+ │ └── Busbar.ocl
52
+ └── SemanticConstraints
53
+ └── Busbar.ocl
54
+ ```
55
+
56
+ If you are using the validator are library (using JAR Files) there is a property to configure the directory, see
57
+ [ Common Environment variables] ( #common-environment-variables )
58
+
59
+ ## NSDoc Files
60
+
61
+ Because NSDoc File can't be distributed in an OpenSource Project these need to be added during deployment. In the Docker
62
+ Image there is a volume ` /data/nsdoc ` which can be used to add these files, see our compas-deployment project for an
63
+ example how to.
64
+
65
+ Only direct files found in this directory will be processed. Invalid NSDoc Files will be ignored. A directory can look
66
+ like this for instance,
67
+
68
+ ```
69
+ data
70
+ └── nsdoc
71
+ ├── IEC_61850-7-2_2007B3-en.nsdoc
72
+ ├── IEC_61850-7-3_2007B3-en.nsdoc
73
+ └── IEC_61850-7-4_2007B3-en.nsdoc
74
+
75
+ ```
76
+
77
+ If you are using the validator are library (using JAR Files) there is a property to configure the directory, see
78
+ [ Common Environment variables] ( #common-environment-variables )
79
+
33
80
## Common Environment variables
34
81
35
82
Below environment variable(s) can be used to configure the validator.
36
83
37
- | Environment variable | Java Property | Description | Example |
38
- | ---------------------------------------| ---------------------------------------| ---------------------------------------------------| -----------|
39
- | COMPAS_VALIDATOR_OCL_CUSTOM_DIRECTORY | compas.validator.ocl.custom.directory | Reference to a directory to load custom OCL Files | /data/ocl |
84
+ | Environment variable | Java Property | Description | Example |
85
+ | ---------------------------------------| ---------------------------------------| -------------------------------------------------------------| -------------|
86
+ | COMPAS_VALIDATOR_OCL_CUSTOM_DIRECTORY | compas.validator.ocl.custom.directory | Reference to a directory to load custom OCL Files | /data/ocl |
87
+ | COMPAS_VALIDATOR_NSDOC_DIRECTORY | compas.validator.nsdoc.directory | Reference to a directory where the NSDoc Files can be found | /data/nsdoc |
40
88
41
89
## Security
42
90
0 commit comments