@@ -142,7 +142,7 @@ public class MyDataClass
142142{
143143 public int Value1 { get ; set ; }
144144 public int Value2 { get ; set ; }
145- public int Value3 { get ; set ; }
145+ public int Answer { get ; set ; }
146146}
147147
148148// Our workflow definition with strongly typed internal data and mapped inputs & outputs
@@ -154,9 +154,9 @@ public class PassingDataWorkflow : IWorkflow<MyDataClass>
154154 .StartWith <AddNumbers >()
155155 .Input (step => step .Input1 , data => data .Value1 )
156156 .Input (step => step .Input2 , data => data .Value2 )
157- .Output (data => data .Value3 , step => step .Output )
157+ .Output (data => data .Answer , step => step .Output )
158158 .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 ());
160160 }
161161 ...
162162}
@@ -175,8 +175,8 @@ or in jSON format
175175 "StepType" : " MyApp.AddNumbers, MyApp" ,
176176 "NextStepId" : " ShowResult" ,
177177 "Inputs" : {
178- "Value1 " : " data.Value1" ,
179- "Value2 " : " data.Value2"
178+ "Input1 " : " data.Value1" ,
179+ "Input2 " : " data.Value2"
180180 },
181181 "Outputs" : {
182182 "Answer" : " step.Output"
@@ -186,7 +186,7 @@ or in jSON format
186186 "Id" : " ShowResult" ,
187187 "StepType" : " MyApp.CustomMessage, MyApp" ,
188188 "Inputs" : {
189- "Message" : " \" The answer is \" + data.Value1 "
189+ "Message" : " \" The answer is \" + data.Answer "
190190 }
191191 }
192192 ]
@@ -203,14 +203,14 @@ Steps:
203203 StepType : MyApp.AddNumbers, MyApp
204204 NextStepId : ShowResult
205205 Inputs :
206- Value1 : data.Value1
207- Value2 : data.Value2
206+ Input1 : data.Value1
207+ Input2 : data.Value2
208208 Outputs :
209209 Answer : step.Output
210210- Id : ShowResult
211211 StepType : MyApp.CustomMessage, MyApp
212212 Inputs :
213- Message : ' "The answer is " + data.Value1 '
213+ Message : ' "The answer is " + data.Answer '
214214` ` `
215215
216216
0 commit comments