protected override void Execute(NativeActivityContext context) { Log.Debug("AssignResult -> Start"); var workflowStatus = context.GetExtension <WorkflowStateData>(); var taskCode = TaskCode.Get(context); if (!string.IsNullOrWhiteSpace(taskCode) && workflowStatus.Tasks.ContainsKey(taskCode)) { TaskParameter.Set(context, workflowStatus.Tasks[taskCode].Parameters[TaskParameterName.Get(context)]); } else { TaskParameter.Set(context, workflowStatus.Parameters[TaskParameterName.Get(context)]); } Log.Debug("AssignResult -> End"); }