@@ -142,7 +142,7 @@ public class MyDataClass
142
142
{
143
143
public int Value1 { get ; set ; }
144
144
public int Value2 { get ; set ; }
145
- public int Value3 { get ; set ; }
145
+ public int Answer { get ; set ; }
146
146
}
147
147
148
148
// Our workflow definition with strongly typed internal data and mapped inputs & outputs
@@ -154,9 +154,9 @@ public class PassingDataWorkflow : IWorkflow<MyDataClass>
154
154
.StartWith <AddNumbers >()
155
155
.Input (step => step .Input1 , data => data .Value1 )
156
156
.Input (step => step .Input2 , data => data .Value2 )
157
- .Output (data => data .Value3 , step => step .Output )
157
+ .Output (data => data .Answer , step => step .Output )
158
158
.Then <CustomMessage >()
159
- .Input (step => step .Message , data => " The answer is " + data .Value3 .ToString ());
159
+ .Input (step => step .Message , data => " The answer is " + data .Answer .ToString ());
160
160
}
161
161
...
162
162
}
@@ -175,8 +175,8 @@ or in jSON format
175
175
"StepType" : " MyApp.AddNumbers, MyApp" ,
176
176
"NextStepId" : " ShowResult" ,
177
177
"Inputs" : {
178
- "Value1 " : " data.Value1" ,
179
- "Value2 " : " data.Value2"
178
+ "Input1 " : " data.Value1" ,
179
+ "Input2 " : " data.Value2"
180
180
},
181
181
"Outputs" : {
182
182
"Answer" : " step.Output"
@@ -186,7 +186,7 @@ or in jSON format
186
186
"Id" : " ShowResult" ,
187
187
"StepType" : " MyApp.CustomMessage, MyApp" ,
188
188
"Inputs" : {
189
- "Message" : " \" The answer is \" + data.Value1 "
189
+ "Message" : " \" The answer is \" + data.Answer "
190
190
}
191
191
}
192
192
]
@@ -203,14 +203,14 @@ Steps:
203
203
StepType : MyApp.AddNumbers, MyApp
204
204
NextStepId : ShowResult
205
205
Inputs :
206
- Value1 : data.Value1
207
- Value2 : data.Value2
206
+ Input1 : data.Value1
207
+ Input2 : data.Value2
208
208
Outputs :
209
209
Answer : step.Output
210
210
- Id : ShowResult
211
211
StepType : MyApp.CustomMessage, MyApp
212
212
Inputs :
213
- Message : ' "The answer is " + data.Value1 '
213
+ Message : ' "The answer is " + data.Answer '
214
214
` ` `
215
215
216
216
0 commit comments