Hi Harry,
Sorry but I have struggled a little. I found a model from 2014 in the forum which did a similar thing to what I've been trying which didn't work but I have got it working now. I changed to suit my Simulation now and have got the priority rule working in the queue which is great. Hopefully I am very close now but the model doesn't do exactly what I want.
I have attached the model to make things easier so you can understand what it is I'm doing and have done more.
I have the SimEntity being assigned a 'ServiceTime' (in minutes) which is called 'a' at the moment. This is generated by the TraingularDistribution and then used to prioritise it in the queue. However, for the actual Server1 the serviceTime in the model I found was being generated by a NormalDistribution, but what I would like is for the time the Server1 takes to serve the SimEntity be the ServiceTime that has been Assigned to it 'a'. The problem I'm struggling to get around I believe is that the Assign can only handle a Dimmensionless Unit so the output on the 'a' is dimensionless and I can't manage to get the Server1 to read the 'a' value in minutes to use it as the ServiceTime.
Does that make sense? Otherwise i have a priority rule using the service time to order the sims but then a completely random time to service being generated which negates the point in the priority rule in the first place.
Hope this makes sense and let me know if the model comes through correctly.
Many Thanks again,
Lewis