Hi Admin,
If I dont want to schedule the Order immediately after Order Creation but rather wait for 5 hrs to Schedule .
Like Updating the Available_Date Column to sysTime+ 5 hrs in yfs_task_q table .
How can I achieve this by configuration.
Notice: Trying to access array offset on value of type null in /home/activeki/blog.activekite.com/wp-content/plugins/wpforo/wpf-themes/classic/layouts/3/post.php on line 62
@094himanshu
You could set the EarliestScheduleDate attribute on OrderLine to 5hrs from current time so that the schedule agent picks this line 5hrs later.
Option 1:
if you like to do scheduling after order creation you can do following
1) ON_SUCCESS event of order creation create action which internally calls scheduleOrder API
2) When we do this order gets moved to scheduled status if inventory available but yfs_task_q record will not be removed
3) We need manually call registerTaskComplete api to remove the task_q entry
Option 2:
Other way you can call manageTaskQueue to update AvailableDate
You can see below link for example of setting AvailableDate attribute.
http://activekite.com/2017/11/12/sterling-oms-taskq-based-agent-server/
Notice: Trying to access array offset on value of type null in /home/activeki/blog.activekite.com/wp-content/plugins/wpforo/wpf-themes/classic/layouts/3/post.php on line 62