You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Next to the _In_ and _Out_ classes we have an _InitIn_ and _InConfig_ class.
101
+
102
+
### InitIn
103
+
Each process has an _InitWorker_ that is the first worker that is called when the process is started.
104
+
105
+
Use this class to:
106
+
- init the _Process Variables_ that are needed in the process (e.g. counters, variables used in expressions that must be defined (Camunda 7 restriction)).
107
+
- init the _Process Variables_ with default values, that are not provided by the client.
108
+
So you can be sure that they are always set - from Option to required in the process.
109
+
110
+
### InConfig
111
+
These are technical _Process Variables_, like:
112
+
- Control the process flow (e.g. timers).
113
+
- Mocking of services and sub-processes.
114
+
115
+
@:callout(info)
116
+
The _InitWorker_ will automatically put these variables on the process.
117
+
That means you can override them for example in _Postman_.
118
+
@:@
100
119
101
120
## Business Rule Tasks (Decision DMNs)
102
121
@@ -127,7 +146,6 @@ This is a single result with one _simple value_.
127
146
128
147
```scala
129
148
singleEntry(
130
-
decisionDefinitionKey ="singleEntry",
131
149
in =Input("A"),
132
150
out =1
133
151
)
@@ -139,7 +157,6 @@ This is a single result with more than one value (_domain object_).
139
157
140
158
```scala
141
159
singleResult(
142
-
decisionDefinitionKey ="singleResult",
143
160
in =Input("A"),
144
161
out =ManyOutResult(1, "🤩")
145
162
)
@@ -151,7 +168,6 @@ This is a list of _simple values_.
151
168
152
169
```scala
153
170
collectEntries(
154
-
decisionDefinitionKey ="collectEntries",
155
171
in =Input("A"),
156
172
out =Seq(1, 2)
157
173
)
@@ -163,7 +179,6 @@ This is a list of _domain objects_.
163
179
164
180
```scala
165
181
resultList(
166
-
decisionDefinitionKey ="resultList",
167
182
in =Input("A"),
168
183
out =List(ManyOutResult(1, "🤩"), ManyOutResult(2, "😂"))
0 commit comments