xSession.isWorkerThread Method
Determines whether the session is a worker thread.
Syntax
public boolean isWorkerThread()
Run On
Called
Return Value
Type: boolean
true if the session is a worker thread; otherwise, false.
Remarks
A worker thread is an instance of the Thread class, which creates a new instance of Microsoft Dynamics AX without UI. If this method is called inside such a session, it will return true.