X-Git-Url: http://git.argeo.org/?a=blobdiff_plain;f=runtime%2Forg.argeo.slc.support.jcr%2Fsrc%2Fmain%2Fresources%2Forg%2Fargeo%2Fslc%2Fjcr%2Fslc.cnd;h=4e8a4e68889d5d4e1484658b65fa9aa147e1c218;hb=5fcacdb600e4c9e765cb93b46132932662832c1b;hp=e82799fe1e6c8f116c6326046be04d8878489c6f;hpb=3ca3b8ffdf07d1821bc6cb09c6d39292edf8575d;p=gpl%2Fargeo-slc.git diff --git a/runtime/org.argeo.slc.support.jcr/src/main/resources/org/argeo/slc/jcr/slc.cnd b/runtime/org.argeo.slc.support.jcr/src/main/resources/org/argeo/slc/jcr/slc.cnd index e82799fe1..4e8a4e688 100644 --- a/runtime/org.argeo.slc.support.jcr/src/main/resources/org/argeo/slc/jcr/slc.cnd +++ b/runtime/org.argeo.slc.support.jcr/src/main/resources/org/argeo/slc/jcr/slc.cnd @@ -1,19 +1,118 @@ +// COMMON [slc:nameVersion] > nt:base mixin - slc:name (STRING) m - slc:version (STRING) m -[slc:agentProxy] > mix:title +// AGENT +[slc:agentFactory] > nt:unstructured, mix:title ++ * (slc:agent) + +[slc:agent] > nt:unstructured, mix:title ++ * (slc:module) + +[slc:module] > slc:nameVersion, mix:title mixin -[slc:module] > slc:nameVersion,mix:title +[slc:activableModule] > slc:module mixin -[slc:executionFlow] > mix:title +[slc:executionModule] > slc:activableModule mixin + +[slc:executionSpec] > nt:unstructured, mix:referenceable, mix:title - slc:name (STRING) m ++ * (slc:executionSpecAttribute) * + +[slc:executionSpecAttribute] > nt:base +mixin abstract +- slc:isImmutable (BOOLEAN) +- slc:isConstant (BOOLEAN) +- slc:isHidden (BOOLEAN) + +[slc:primitiveSpecAttribute] > slc:executionSpecAttribute +mixin +- slc:type (STRING) +- slc:value (UNDEFINED) + +[slc:refSpecAttribute] > slc:executionSpecAttribute +orderable +mixin +// typically a class name +- slc:type (STRING) +- slc:value (UNDEFINED) ++ * (mix:title) + +[slc:executionFlow] > nt:unstructured, mix:title +- slc:name (STRING) ! m +// if the execution spec is a referenceable node +- slc:spec (REFERENCE) +// if the execution spec is internal (without name) ++ * (slc:executionSpecAttribute) * + +// PROCESS +[slc:process] > nt:unstructured, mix:created, mix:lastModified +orderable +- slc:uuid (STRING) ! m +- slc:status (STRING) m ++ slc:flow (slc:realizedFlow) ++ slc:log + +// The first part of the relative path is the thread name, rest is location +[slc:logEntry] > nt:unstructured +abstract +- slc:message (STRING) ! +- slc:timestamp (STRING) + +// Log levels are set via types. +// Querying one level also queries the higher levels thanks to the inheritance +// e.g. 'select * from [slc:logWarn]' also returns errors +[slc:logTrace] > slc:logEntry + +[slc:logDebug] > slc:logTrace + +[slc:logInfo] > slc:logDebug + +[slc:logWarning] > slc:logInfo + +[slc:logError] > slc:logWarning + +[slc:realizedFlow] > nt:base +orderable +mixin +// the name of the flow +// - slc:flow (STRING) +// the name of the execution spec +// - slc:spec (STRING) +- slc:started (DATE) +- slc:completed (DATE) +//- slc:status (STRING) ++ slc:address (nt:address) ++ slc:flow (slc:realizedFlow) * +// the realized execution spec attributes ++ * (slc:executionSpecAttribute) * + +// RESULT +[slc:result] > nt:unstructured, mix:created, mix:lastModified +- slc:uuid (STRING) ! m +- slc:testCase (STRING) +- slc:completed (DATE) +[slc:diffResult] > slc:result ++ slc:summary ++ slc:issues +[slc:check] > nt:unstructured +// true for PASSED, false for FAILED or ERROR +- slc:success (BOOLEAN) ! m +- slc:message (STRING) +// ERROR if set, the check could not be performed because of an unexpected exception +- slc:errorMessage (STRING) +// to ease transition with legacy approach ++ * (slc:property) * +[slc:property] > nt:unstructured +- slc:name (STRING) ! m +- slc:value (STRING) m