Hi Ivan!
You can use either strong typed Page Type objects in this method or just a GetValue of TreeNode. For example:
public override IntegrationProcessResultEnum ProcessInternalTaskAsync(TreeNode node,
TranslationHelper translations, TaskTypeEnum taskType, TaskDataTypeEnum dataType, string siteName,
out string errorMessage)
{
errorMessage = String.Empty;
// cast to strong type
var article = node as Article;
// access the custom field
var summary = article.ArticleSummary;
// get without strong type
var summary2 = node.GetValue("ArticleSummary");
return IntegrationProcessResultEnum.OK;
}
Please note, that you need to have generated class for page type. In the example above you should have Article.generated.cs in your solution. And if it is MVC - you should have it in Admin Web Application as well! Hope it helps.