Показать сообщение отдельно
Старый 16.08.2019, 02:39   #1  
Blog bot is offline
Blog bot
Участник
 
25,459 / 846 (79) +++++++
Регистрация: 28.10.2006
How to debug Workflow in D365 without access to Batch.exe
Источник: http://alexvoy.blogspot.com/2019/08/...5-without.html
==============

Correct me if I am wrong, but there is no specific article https://docs.microsoft.com about debugging custom Workflow in D365.

So, once I bumped into necessity to test my custom Workflow classes, I found myself unlucky not having admin rights fot Batch.exe (as described here https://ax.docentric.com/debug-workf...nd-operations/)

Next search results (in particular this one https://thwidmer.wordpress.com/categ...x-2012/page/2/) brought me to the following steps.

I stopped DynamicsAxBatch, which execute actual batch processing in D365.



I added the following simple class and and a menu item button to a form.



class CDPWFDebuggerActive
{
static public void main(Args _args)
{
SysWorkflowMessageQueueManager::runStatic(conNull());
}

}



Now I run it by the button to execute batch processing in step-by-step mode, and it perfectly hits my breakpoints inside of Workflow handlers once I attached to the standard IIS process.









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