Skip to content

Commit 4f5db56

Browse files
author
Gregor Holzer
committed
feat: add service invocation output variables
1 parent de4ca5a commit 4f5db56

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

src/main/resources/pkl/csm/csml.pkl

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ class InvokeDescription extends ActionDescription {
9999
type: InvocationType
100100
mode: InvocationMode = "remote"
101101
input: Context
102+
output: Listing<ContextVariableReferenceDescription>
102103
raises: Listing<EventDescription>
103104
}
104105

@@ -122,10 +123,11 @@ class ResetDescription extends ActionDescription {
122123

123124
class CaseDescription {
124125
of: Expression
125-
then: Listing<ActionDescription>
126+
then: ActionDescription
126127
}
127128

128129
class MatchDescription extends ActionDescription {
130+
value: Expression
129131
cases: Listing<CaseDescription>
130132
default: ActionDescription?
131133
}
@@ -134,6 +136,10 @@ class LogDescription extends ActionDescription {
134136
message: Expression
135137
}
136138

139+
class ContextVariableReferenceDescription {
140+
reference: String
141+
}
142+
137143
typealias EventTopic = String(matches(Regex(#"^[a-zA-Z_]\w*$"#)))
138144

139145
typealias EventChannel = "internal"|"external"|"global"|"peripheral"

0 commit comments

Comments
 (0)