2017-05-24 19 views
0

custom activityNativeActivity에서 파생되었습니다.InArgument NativeActivity에 값을 전달할 수 없습니다.

ToEmailAddress 항상 null 워크 플로를 호출 할 때 전달합니다.

이유를 알아낼 수 없었습니다 !!! 워크 플로우에서 사용자 정의 활동에 다음 매개 변수를 통과 한 경우이 확인 바랍니다 작동하지 않을 경우

string emailAddress = "[email protected]"; 
Dictionary<string, object> inputs = new Dictionary<string, object>(); 
inputs.Add("ToEmailAddress", emailAddress); 

WorkflowApplication wfApp = new WorkflowApplication(customerWorkflow, inputs); 
wfApp.run(); 

답변

0

호출

public InArgument<string> ToEmailAddress { get; set; } 
protected override void Execute(NativeActivityContext context) 
{ 
    var email = ToEmailAddress.Get(context); 
} 

당신은

var email = context.getValue(this.ToEmailAddress); 

을 시도 할 수 있습니다