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

 
 
Опции темы Поиск в этой теме Опции просмотра
Старый 04.07.2013, 01:19   #1  
Blog bot is offline
Blog bot
Участник
 
25,643 / 848 (80) +++++++
Регистрация: 28.10.2006
emeadaxsupport: How to enable “Conditions” for Retail jobs in AX 2012 R2
Источник: http://blogs.msdn.com/b/axsupport/ar...x-2012-r2.aspx
==============

TITLE:

How to enable “Conditions” for Retail jobs in AX 2012 R2



DESCRIPTION:

We want to enable the possibility to schedule the Retail jobs (A-Jobs, N-Jobs or P-Jobs),
so they are running after each other. In this example it will be the A-jobs (A-1000 and A-1010)


  • First we need to add the code enabling the class to be selected in the batch setup

\Classes\RetailConnScheduleRunner\classDeclaration

///

/// Batch job to run the specified schedule

///

///MS START

[SysOperationJournaledParametersAttribute(true)]

///MS END

class RetailConnScheduleRunner extends
RunBaseBatch

{

RetailConnSchedule schedule;

boolean
forceRun;

BatchHeader
batchHeader;


RefRecId
onlyTargetLocation;



#define.CurrentVersion(2)

#localmacro.CurrentList

schedule,


forceRun,


onlyTargetLocation

#endmacro

}


  • Next you need to compile forward on the changed class
  • Third is that you need to generate Incremental CIL
  • The next step is now to create the batch jobs. The easiest is to go to the Retail Distribution schedule and then just
    “Create batch job” on the A-1000



  • After this step, we need to go to the System Administration / Inquiries / Batch jobs / Batch Jobs
  • Find the A-1000 and set it to Withhold status
  • Go to Batch Tasks
  • Add a new line and type A-1010 in the Task Description. (the exact naming is important here). Find the RetailConnScheduleRunner in the lookup.
  • Condition: After all tasks are created, go to the Condition area and add a new line and point to the job, you want
    to be have finished before this can start.




AUTHOR:

Kim Truelsen



PUBLISHED DATE:

3rd July 2013




Источник: http://blogs.msdn.com/b/axsupport/ar...x-2012-r2.aspx
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору.
 

Похожие темы
Тема Автор Раздел Ответов Посл. сообщение
amer-ax: It was a great day! Blog bot DAX Blogs 3 29.12.2012 01:02
emeadaxsupport: Final Microsoft Dynamics AX 2012 R2 Content Available! Blog bot DAX Blogs 0 04.12.2012 06:12
DAX: Official Dynamics AX 2012 R2 Content (update) - Where is it, and how can you find out about updates? Blog bot DAX Blogs 0 03.12.2012 11:11
emeadaxsupport: AX 2012 Retail: How to enable tracing in AX 2012 Retail Blog bot DAX Blogs 0 07.08.2012 15:11
emeadaxsupport: New Content for Microsoft Dynamics AX 2012 : October 2011 Blog bot DAX Blogs 0 27.10.2011 17:11

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

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

Рейтинг@Mail.ru
Часовой пояс GMT +3, время: 07:37.