@@ -20,8 +20,10 @@ import { Metadata } from './metadata';
20
20
import { Statedatafilter } from './statedatafilter' ;
21
21
import { Transition } from './transition' ;
22
22
import {
23
+ cleanSourceModelProperty ,
23
24
normalizeActions ,
24
25
normalizeEnd ,
26
+ normalizeMode ,
25
27
normalizeOnErrors ,
26
28
normalizeTransition ,
27
29
normalizeUsedForCompensation ,
@@ -30,11 +32,9 @@ import {
30
32
overwriteMetadata ,
31
33
overwriteOnErrors ,
32
34
overwriteStateDataFilter ,
35
+ overwriteTimeoutWithStateExecTimeout ,
33
36
overwriteTransition ,
34
37
setEndValueIfNoTransition ,
35
- normalizeMode ,
36
- overwriteTimeoutWithStateExecTimeout ,
37
- cleanSourceModelProperty ,
38
38
} from './utils' ;
39
39
import { ActionExecTimeout } from './types' ;
40
40
import { StateExecTimeout } from './stateExecTimeout' ;
@@ -45,7 +45,13 @@ export class Foreachstate {
45
45
constructor ( model : any ) {
46
46
this . sourceModel = Object . assign ( { } , model ) ;
47
47
48
- const defaultModel = { type : 'foreach' , usedForCompensation : false , mode : 'parallel' } ;
48
+ const defaultModel = {
49
+ id : undefined ,
50
+ name : undefined ,
51
+ type : 'foreach' ,
52
+ usedForCompensation : false ,
53
+ mode : 'parallel' ,
54
+ } ;
49
55
Object . assign ( this , defaultModel , model ) ;
50
56
51
57
overwriteEnd ( this ) ;
@@ -120,7 +126,6 @@ export class Foreachstate {
120
126
* If true, this state is used to compensate another state. Default is false
121
127
*/
122
128
usedForCompensation ?: boolean ;
123
-
124
129
/**
125
130
* Specifies how iterations are to be performed (sequentially or in parallel)
126
131
*/
0 commit comments