BBjSessionInfo::getGroupID

Description

In BBj 10.0 and higher, this method returns a group identifier for the session group to which this BBjSession belongs. A group identifier is an integer value shared by an original BBj session and any child sessions started via SCALL, BACKGROUND, and newBBjSession. The group identifier is shared by processes inside an MDI Window and is the group identifier used by BBjAPI::getGroupNamespace.

Syntax

Return Value

Method

int

getGroupID()

Parameters

None.

Return Value

A value that identifies the session group.

Remarks

None.

Example

rem ' BBjSessionInfo

info$ = stbl("!SESSIONINFO","Session Info Message")
info! = bbjapi().getCurrentSessionInfo()
print 'br',"bbjapi().getCurrentSessionInfo: ",'er',info!
print "getUser: ",info!.getUser()
print "getUnresponsiveTime:",info!.getUnresponsiveTime()
print "getIPAddress: ",info!.getIPAddress()
print "getConnectTime: ",info!.getConnectTime()
print "getProgramName: ",info!.getProgramName()
print "getProgramLine:",info!.getProgramLine()
print "getLineListing: ",info!.getLineListing()
print "isBackground: ",info!.isBackground()
print "getSessionID:",info!.getSessionID()
print "getTerminalID: ",info!.getTerminalID()
print "getTerminalName: ",info!.getTerminalName()
print "getMessage: ",info!.getMessage()

vector! = bbjapi().getSessionInfos()
size = vector!.size()
print 'br',"bbjapi().getSessionInfos:",'er'
for i = 0 to size - 1
    info! = vector!.get(i)
    print info!
next i
end

See Also

BBjAPI

BBjAPI::getSessionInfos

BBjSessionInfo

BBjAPI::getGroupNamespace

See the BBj Object Diagram for an illustration of the relationship between BBj Objects.