The implementation was originally in Simupedia but was obviously lost
while moving the validation implementation to Simantics Platform.
gitlab #255
Change-Id: I81c92620631caa352daa5a7380733a4edb91e938
DOC.Functions.sclValue : L0.ExternalValue
DOC.HandlerSCLValue <T L0.SCLValue
+ @L0.scl L0.SCLValueType.validator """\self -> compileSimupediaSCLHandlerValueExpression self""" "Variable -> <ReadGraph> String"
@L0.assert L0.ConvertsToValueWith
DOC.Functions.sclHandlerValue : L0.ExternalValue
stateVariable :: Variable -> <ReadGraph> Variable
compileDocumentSCLValueExpression :: Variable -> <ReadGraph> String
+ compileDocumentSCLHandlerValueExpression :: Variable -> <ReadGraph> String
primitiveProperties :: <Proc> DocumentProperties
}
}
+ public static String compileDocumentSCLHandlerValueExpression(ReadGraph graph, Variable context) {
+ try {
+ ServerSCLHandlerValueRequest.compile(graph, context);
+ return "";
+ } catch (Exception e) {
+ return resolveIssueMessage(e);
+ }
+ }
+
private static String resolveIssueMessage(Exception e) {
if (e instanceof ImportFailureException)
return "";