Hi,
Is it possible to modify the duration of a workflow task to a time unit of less than an hour?
I am trying to give users 20 minutes but this seems not possible to realize this as only full numbers are allowed to be entered and as there is no functionality available to enter minutes.
Best regards,
Ludwig
*This post is locked for comments
Probably we all are sleepy head yet. :)
I also saw this on AX2012 yesterday. But just realized now that question is about D365. There might be other possibilities or no possibilities. I will give it a go in D365, as I will find time. Meanwhile everybody else is being welcomed to contribute.
A Quick "hack" option to try is to extend "WorkflowWorkCalendarDueDateProvider" and modify the "resolve" method to divide the parameter "_timeSpanMinutes" by 60. This will have obvious implications that what you select on the configuration form will not be the same as what actually happens, but you can at least manipulate it as you want. E.G. Selecting 1 Hour on configuration will do 1 Minute in reality.
Hi Ludwig.
You can create a new WorkflowDueDateProvider class to handle times as you would like them to be handled. But an important thing to remember is that the DueDate batch jobs are generally setup to only run much less frequently. So if you expect finer grained timing you will need to adjust this accordingly and you may influence performance as a result too.
I am afraid I don't see any way out of box. Customization could be one of the ways (not an easy one).
you would need to find source of Microsoft developed , managed Host Control, that is used in workflow editor. If any part of managed host control, is in system code, that would not be allowed to customize.
For moment I would recommend you, if you may say to your client that this is not possible out of box, and look around possibilities if that can be customized. Don't make a promise to deliver :)
Hi SM,
I tried 'cheating' AX this way but unfortunately, it does not work.
Even created a completely new calendar with a new working time template but the workflow history tasks seem to ignore that :-(
Would have been a very smart workaround but it does not work in my case.
Best regards,
Ludwig
Hi Ludwig,
You can select Duration : "Days"
Calender Name : "<Your new calender id>"
And in Working time calenders form,
1. Select your new calender id
2 . Under General Tab, Standard work day in hours = 0.20
Remember to create a new calender id and not modify existing ones.
Let me know if this works.
Regards,
SM
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,151 Super User 2024 Season 2
Martin Dráb 229,963 Most Valuable Professional
nmaenpaa 101,156