Показать сообщение отдельно
Старый 17.06.2010, 15:05   #1  
Blog bot is offline
Blog bot
Участник
 
25,643 / 848 (80) +++++++
Регистрация: 28.10.2006
workflowax: Reset Delegate Due Date
Источник: http://workflowax.wordpress.com/2010...gate-due-date/
==============

Dynamics AX 2009 workflow has functionality built in by default to delegate work-items to new users. But what happens if your workitem is about to escalate when you delegate? The new assignee may only have a very short time to action the item. So if you want to reset the due date time of work-items on delegation, here is a quick and dirty way to get it right. Be warned, this is modifying a framework class so you will need to be careful when upgrading.

Class SysWorkflowEventDispatcher::onWorkitemDelegate

//Declare Variable (line 23)WorkflowDateTimeTemp _dueDate;//Generate and set new due date (approx line 114) after Setting description, before notifying assignee_dueDate = SysWorkflowProviderService::resolveDueDate(_workItemContext.parmWorkflowCorrelation().parmWorkflowContext(), stepTable.StepId, workItemTable.UserId);workItemTable.DueDateTime = DateTimeUtil::newDateTime(_dueDate.parmWorkflowDate(), _dueDate.parmWorkflowTime());//notify the assigneenotification = EventNotificationWorkflow......Happy Daxing




Источник: http://workflowax.wordpress.com/2010...gate-due-date/
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору.