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
# Release 1.2.0
## New features
- 'OnExpired' blocks to provide, periodically triggered via events. Multiple blocks can be used. (Replaces former 'OnNewValue' block)
- Logic blocks to solve simple logic operations directly within a flow
- New event 'OnStopFlowConfigProviders' to inform other modules to stop their FlowConfig related providers, e.g. via UI button (related modules need to be updated to support this feature)
Copy file name to clipboardExpand all lines: CHANGELOG.md
+10Lines changed: 10 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,16 @@
1
1
# Changelog
2
2
All notable changes to this project will be documented in this file.
3
3
4
+
## Release 1.2.0
5
+
6
+
### New features
7
+
- 'OnExpired' blocks to provide, periodically triggered via events. Multiple blocks can be used. (Replaces former 'OnNewValue' block)
8
+
- Logic blocks to solve simple logic operations directly within a flow
9
+
- New event 'OnStopFlowConfigProviders' to inform other modules to stop their FlowConfig related providers, e.g. via UI button (related modules need to be updated to support this feature)
Copy file name to clipboardExpand all lines: CSK_Module_FlowConfig/project.mf.xml
+115-4Lines changed: 115 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -16,6 +16,22 @@ Check the UI of this CSK module to configure the system. +</desc>
16
16
<itemdesc="This will save the configuration of the flow and additionally triggers for all CSK modules used within the flow to save their current configuration in PersistentData"name="FLOW">FLOW</item>
17
17
<itemdesc="This will only save the configuration of the flow in PersistentData. Configurations done in other CSK modules need to be saved additionally"name="MODULE">MODULE</item>
<desc>Function to add a cyclic timer to trigger events.</desc>
235
+
<paramdesc="Value to send via event. For 'BOOL' values use "true" or "false""multiplicity="1"name="value"type="string"/>
236
+
<paramdesc="Type of value to send."multiplicity="1"name="valueType"type="string"/>
237
+
<paramdesc="Cycle time in ms ('0' for single trigger)"multiplicity="1"name="cycleTime"type="int"/>
238
+
</function>
239
+
<functionname="addLogicBlock">
240
+
<desc>Function to internally add logic blocks.</desc>
241
+
<paramdesc="Internally set instance identifier."multiplicity="1"name="instance"type="string"/>
242
+
<paramdesc="Logic to use."multiplicity="1"name="logic"ref="CSK_FlowConfig.LogicOperator"type="enum"/>
243
+
<paramdesc="Source for value1."multiplicity="1"name="source1"type="string"/>
244
+
<paramdesc="Optional source for value2."multiplicity="?"name="source2"type="string"/>
245
+
<paramdesc="Optional criteriaA, used by some operators (see info for logic)."multiplicity="?"name="criteriaA"type="string"/>
246
+
<paramdesc="Optional valueB, used by some operators (see info for logic)."multiplicity="?"name="valueB"type="string"/>
247
+
</function>
248
+
<functionname="stopFlowProviders">
249
+
<desc>Function to trigger event to stop FlowConfig relevant providers.</desc>
250
+
</function>
193
251
</serves>
194
252
</crown>
195
253
<crownname="FlowConfig_FC">
@@ -204,11 +262,13 @@ Check the UI of this CSK module to configure the system. +</desc>
204
262
<serves/>
205
263
<crownname="OnNewValue">
206
264
<trait>released</trait>
207
-
<desc>Provide values. Especially helpful for testing purposes.</desc>
265
+
<desc>DEPRECATED - Use 'OnExpired' block instead.
266
+
Provide values. Especially helpful for testing purposes.</desc>
208
267
<serves>
209
268
<eventname="OnNewValue">
210
269
<include>data-flow</include>
211
-
<desc>Provide values. Especially helpful for testing purposes.
270
+
<desc>DEPRECATED - Use 'OnExpired' block instead.
271
+
Provide values. Especially helpful for testing purposes.
212
272
Will send current timestamp as 2nd parameter.</desc>
213
273
<paramdesc="Handle to internally used FlowConfig instance."multiplicity="1"name="handle"type="handle"/>
214
274
<paramdesc="'CSK_FlowConfig.OnNewValue' Parameter: 1: Value (STRING or NUMBER or BOOL) 2: Timestamp (INT)"multiplicity="1"name="OnNewValue"type="string"/>
@@ -231,14 +291,65 @@ Will send current timestamp as 2nd parameter.</desc>
231
291
</function>
232
292
</serves>
233
293
</crown>
294
+
<crownname="OnExpired">
295
+
<trait>released</trait>
296
+
<desc>Periodically notify values. Especially helpful for testing purposes.
297
+
Will send current timestamp as 2nd parameter.</desc>
298
+
<serves>
299
+
<eventname="OnExpired">
300
+
<include>data-flow</include>
301
+
<desc>Periodically notify values. Especially helpful for testing purposes.
302
+
Will send current timestamp as 2nd parameter.</desc>
303
+
<paramdesc="Handle to internally used FlowConfig instance."multiplicity="1"name="handle"type="handle"/>
304
+
<paramdesc="'CSK_FlowConfig.OnExpired_[TYPE]_[TIME]_[VALUE]' Parameter: 1: Value (STRING or NUMBER or BOOL) 2: Timestamp (INT)"multiplicity="1"name="OnExpired"type="string"/>
305
+
</event>
306
+
<functionname="create">
307
+
<trait>released</trait>
308
+
<desc>Internally used CSK_FlowConfig create function.</desc>
309
+
<paramdesc="Cycle time in ms ('0' for single trigger)"multiplicity="1"name="CycleTime"type="int"/>
310
+
<paramdesc="Type of value to send."multiplicity="1"name="ValueType"ref="FlowConfig_FC.ValueType"type="enum"/>
311
+
<paramdesc="Value to send via event. For 'BOOL' values use "true", "false" or "toggle"."multiplicity="1"name="Value"type="string"/>
312
+
<returndesc="Handle to internally used FlowConfig instance."multiplicity="1"name="handle"type="handle"/>
313
+
</function>
314
+
<functionname="register">
315
+
<trait>released</trait>
316
+
<desc>Internally used CSK_FlowConfig register function.</desc>
317
+
<paramdesc="Handle to internally used FlowConfig instance."multiplicity="1"name="handle"type="handle"/>
<paramdesc="Internally used callback function."multiplicity="1"name="callback"type="string"/>
320
+
<returndesc="Success of register process."multiplicity="1"name="success"type="bool"/>
321
+
</function>
322
+
</serves>
323
+
</crown>
324
+
<crownname="ProcessLogic">
325
+
<desc>Check incoming value(s) with a logical operator. Return result and optionally forward processed value if succesfull.</desc>
326
+
<serves>
327
+
<functionname="create">
328
+
<desc>Internally used CSK_FlowConfig create function.</desc>
329
+
<paramconstraint="1-99"desc="Type of logic operator. AND valueA AND valueB AND_PREV valueA AND valueB (keep previous status) CHANGED valueA =! previous valueA EQUAL valueA == critieraA GREATER valueA > criteriaA GREATER_EQUAL valueA >= criteriaA INVERT not valueA LESS valueA < criteriaA LESS_EQUAL valueA <= criteriaA OR valueA OR valueB OR_PREV valueA OR valueB (keep previous status) OUT_OF_RANGE valueA < critieriaA OR valueA > critieriaB WITHIN_RANGE criteriaA >= valueA <= critieriaB"multiplicity="1"name="Logic"ref="CSK_FlowConfig.LogicOperator"type="enum"/>
330
+
<paramdesc="Optional criteriaA (see info of logic)."multiplicity="?"name="criteriaA"type="string"/>
331
+
<paramdesc="Optional criteriaB (see info of logic)."multiplicity="?"name="criteriaB"type="string"/>
332
+
<returndesc="Handle to internally used FlowConfig instance."multiplicity="1"name="handle"type="handle"/>
333
+
</function>
334
+
<functionname="processLogic">
335
+
<include>data-flow</include>
336
+
<desc>Check incoming value(s) with a logical operator. Return result and optionally forward processed value if succesfull.</desc>
337
+
<paramdesc="Handle to internally used FlowConfig instance."multiplicity="1"name="handle"type="handle"/>
338
+
<paramdesc="Set source of valueA. Parameter: 1: value (AUTO)"multiplicity="?"name="sourceA"type="string"/>
339
+
<paramdesc="Set source of valueB. Parameter: 1: value (AUTO)"multiplicity="?"name="sourceB"type="string"/>
340
+
<returndesc="'CSK_FlowConfig.OnNewLogicResult_[NUM]' (NUM is set internally) Parameter: 1: (optional) Result (BOOL)"multiplicity="1"name="OnNewLogicResult"type="string"/>
341
+
<returndesc="Forward checked value (ONLY if operation was successfull). 'CSK_FlowConfig.OnNewValueToForward_[NUM]' (NUM is set internally) Parameter: 1: (optional) Result (AUTO)"multiplicity="1"name="OnNewValueToForward"type="string"/>
0 commit comments