AXForum  
Вернуться   AXForum > Microsoft Dynamics AX > DAX Blogs
All
Забыли пароль?
Зарегистрироваться Правила Справка Пользователи Сообщения за день Поиск

 
 
Опции темы Поиск в этой теме Опции просмотра
Старый 02.03.2016, 22:12   #1  
Blog bot is offline
Blog bot
Участник
 
25,475 / 846 (79) +++++++
Регистрация: 28.10.2006
Infolog in batch task history using SysOperation framework
Источник: http://alexvoy.blogspot.com/2016/03/...ory-using.html
==============

If you add tasks to a batch job using SysOperation framework, like the following:


[...]

while (mapIterator.more())
{
if (!batchHeader)
{
batchHeader = this.getCurrentBatchHeader();
}

controller = wblDirPartyMergeTaskController::construct();

[...]

if (batchHeader)
{
batchInfo = controller.batchInfo();
batchHeader.addRuntimeTask(controller, this.getCurrentBatchTask().RecId);
}
else
{
setPrefix(batchInfoStr);
controller.parmExecutionMode(SysOperationExecutionMode::Synchronous);
controller.run();
}

mapIterator.next();
}

if (batchHeader)
{
batchHeader.save();
}
}
You need to set Execution mode to Synchronous while initializing your service class controller.

// class wblDirPartyMergeTaskController extends SysOperationServiceController
public void new()
{
super();
// default for controllers in these classes is synchronous execution
// batch execution will be explicitly specified. The default for
// SysOperationServiceController is ReliableAsynchronous execution
this.parmExecutionMode(SysOperationExecutionMode::Synchronous);

this.parmOther(newValue);
}
Otherwise you will see nothing in bath tasks history infolog.


Источник: http://alexvoy.blogspot.com/2016/03/...ory-using.html
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору.
 

Похожие темы
Тема Автор Раздел Ответов Посл. сообщение
patrickmouwen: Dynamics AX Retail: how to automate processes and interfaces in a combined way Blog bot DAX Blogs 0 23.12.2015 23:11
Microsoft Dynamics CRM Team Blog: Creating and customizing task flows Blog bot Dynamics CRM: Blogs 0 11.12.2015 04:14
emeadaxsupport: Update to AX 2012 Framework Component Documentation: SysOperation Framework Blog bot DAX Blogs 0 09.06.2012 00:11
axinthefield: Optimizing AX Batch Performance - Batch Group Configuration Blog bot DAX Blogs 0 01.04.2011 13:11
axaptapedia: Batch processing Blog bot DAX Blogs 0 29.01.2009 17:05

Ваши права в разделе
Вы не можете создавать новые темы
Вы не можете отвечать в темах
Вы не можете прикреплять вложения
Вы не можете редактировать свои сообщения

BB коды Вкл.
Смайлы Вкл.
[IMG] код Вкл.
HTML код Выкл.
Быстрый переход

Рейтинг@Mail.ru
Часовой пояс GMT +3, время: 11:51.
Powered by vBulletin® v3.8.5. Перевод: zCarot
Контактная информация, Реклама.