HPCC-12311 Remove extra calls to Dali for JobQueues

The existing WsSMC.Activity code retrieves JobQueue info
using the functions inside wujobq and dfuwu. The
createJobQueue() and copyItemsAndState() are used for an
ECL job queue. The queuedJobs() is used for a DFL job queue.
Each of those functions creates at least one connection to
Dali. Since an HPCC systrem contains multiple job queues, a
lot of the connections are created for one onActivity call.
In this fix, only one connection is used to Dali which gets
the /JobQueues tree and the tree has the JobQueue info for
all of the job queues.

Signed-off-by: wangkx <kevin.wang@lexisnexis.com>
This is the only place that uses copyItemsAndState .. given this is a IJobQueueConst from a snapshot, shouldn't you just be getting the IJobQueueItem's from the IJobQueueConst directly ?

I also notice that copyItemsAndState specifically returns items if  paused or stopped (though the method name gives no hint of that behaviour.., another reason not to use/remove)

It looks like this is a old way of doing some of the same stuff that this commit is trying to achieve, copyItemsAndState was introduced here:
https://github.com/hpcc-systems/HPCC-Platform/commit/8059bd41321b02d165784918aa0d811e2d0df7dd

It's at best confusing at the moment, especially re. stopped|paused.

copyItemsAndState should probably be removed altogether and this code refactored to use the queue directly and comments added to explain 'stopped' + 'paused' behaviour.