6 and takes the absolute value of the result of this subtraction to be divided by the size of the real queue 6 if a threshold value is exceeded the input flow forecast 10 does no longer match sufficiently the real input flow of tasks to the bpm engine 4 and then returns to step 110 to refresh the forecast 10 and the optimized resource allocation 12 upon reception of a request to dispatch a task from the bpm engine 4 the method continues to step 140 the request to dispatch a task is received by the task dispatcher 8 according to step 150 the task dispatcher 8 calculates under consideration of the resource allocation recommendation 12 from the mip module 11 an optimal recommendation for dispatching the task to a queue 6 the optimal recommendation is formed for the task dispatching by prioritizing resources when pulling is implemented or by prioritizing steps when pushing is implemented in the present embodiment both are implemented and a combined prioritization of resources and steps is performed the optimal recommendation provides the reality to forecast divergence metric with the maximum value according to step 160 the task dispatcher 8 sends a recommendation for assigning the task to a queue 6 to the bpm engine 4 the bpm engine 4 then assigns the task according to the recommendation to the queue 6 the method then returns to step 130 the flowchart and block diagrams in the figures illustrate the architecture functionality and operation of possible implementations of systems methods and computer program products according to various embodiments of the present invention in this regard each block in the flowchart or block diagrams may represent a module segment or portion of code which includes one or more executable.