EventJobCUDTask.isSessionActive Method [AX 2012]

Determines whether a given session is still running.

public boolean isSessionActive(EventCUD ec)

Run On

Called

Parameters

ec
Type: EventCUD Table
The CUD event record for which to determine whether its session is currently running.

Return Value

Type: boolean
true if the session is running; otherwise, false.

This method does an inexpensive check by using the ec.QueueMap::isSessionActive(false) method. Only if true is returned, the more expensive, and truly correct, ec.QueueMap::isSessionActive(true) method is called.

The effect of this is that calling the isSessionActive method is usually very inexpensive.

Community Additions

ADD
Show: