@@ -18,50 +18,52 @@ import {OnErrors, OperationState, Transition} from "./workflow";
1818import { ActionModeType , Actions , End , StateDataFilter } from "./types" ;
1919
2020export class OperationStateBuilder {
21-
22- private model : OperationState = {
23- type : "operation"
24- }
25-
26- withName ( value : string ) : OperationStateBuilder {
27- this . model . name = value ;
28- return this ;
29-
30- }
31-
32-
33- withActionMode ( value : ActionModeType ) : OperationStateBuilder {
34- this . model . actionMode = value ;
35- return this ;
36-
37- }
38-
39- withEnd ( value : End ) : OperationStateBuilder {
40- this . model . end = value ;
41- return this ;
42- }
43-
44- withActions ( value : Actions ) : OperationStateBuilder {
45- this . model . actions = value ;
46- return this ;
47- }
48-
49- withTransition ( value : Transition ) : OperationStateBuilder {
50- this . model . transition = value ;
51- return this ;
52-
53- }
21+
22+ private model : OperationState = {
23+ type : "operation" ,
24+ } ;
25+
26+ withName ( value : string ) : OperationStateBuilder {
27+ this . model . name = value ;
28+ return this ;
29+
30+ }
31+
32+
33+ withActionMode ( value : ActionModeType ) : OperationStateBuilder {
34+ this . model . actionMode = value ;
35+ return this ;
36+
37+ }
38+
39+ withEnd ( value : End ) : OperationStateBuilder {
40+ this . model . end = value ;
41+ return this ;
42+ }
43+
44+ withActions ( value : Actions ) : OperationStateBuilder {
45+ this . model . actions = value ;
46+ return this ;
47+ }
48+
49+ withTransition ( value : Transition ) : OperationStateBuilder {
50+ this . model . transition = value ;
51+ return this ;
52+
53+ }
54+
5455 withStateDataFilter ( value : StateDataFilter ) : OperationStateBuilder {
5556 this . model . stateDataFilter = value ;
5657 return this ;
5758 }
58- withOnErrors ( value : OnErrors ) : OperationStateBuilder {
59- this . model . onErrors = value ;
60- return this ;
61- }
62-
63- build ( ) : OperationState {
64- return this . model ;
65- }
66-
59+
60+ withOnErrors ( value : OnErrors ) : OperationStateBuilder {
61+ this . model . onErrors = value ;
62+ return this ;
63+ }
64+
65+ build ( ) : OperationState {
66+ return this . model ;
67+ }
68+
6769}
0 commit comments