Package com.softwaremining.cics
Class TaskContext
java.lang.Object
com.softwaremining.cics.TaskContext
Each CICS task is created to run a single transaction (TRANSID).
The task begins by executing the transaction's initial program, may LINK or XCTL to other programs within the same task, and always ends when EXEC CICS RETURN is executed, whether or not a TRANSID is specified.
If RETURN TRANSID(...) is used, CICS schedules a new task for the specified transaction; the current task still terminates.
If RETURN TRANSID(...) is used, CICS schedules a new task for the specified transaction; the current task still terminates.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumstatic enum -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidcopyChannelForSTART(TaskContext targetTaskContext, String channelName) Create a deep copy of a single channel (and its containers) to be used as input for a new TaskContext created by EXEC CICS START ...static TaskContextcreateOrRetrieveContainerListFromChannel(String channelName) static TaskContextstatic CicsBaseServicegetSessionIdStartingProgram(Long sessionId) intgetTransactionWorkArea(String transId) For internal use only TWA is a User Work Area which is common to all tasks in the session.getUserDAO(String name) booleanFor internal use onlyvoidbooleanisAbend()booleanvoidvoidreset(TaskContext.ProcessType procType) voidvoidsetCurrentProgramName(String currentProgramName) voidsetProcessType(TaskContext.ProcessType processType) voidsetRunStatus(TaskContext.RunStatus runStatus) voidsetTransactionId(String transactionId) voidvoidstoreUserDAO(String name, ISMBean dao)
-
Method Details
-
createNewTaskContext
-
getCurrentInstance
-
getTaskNumber
public int getTaskNumber() -
getTransactionWorkArea
For internal use only TWA is a User Work Area which is common to all tasks in the session. This is a holdover from macro-level CICS and is seldom used.- Returns:
-
hasTransactionWorkArea
public boolean hasTransactionWorkArea()For internal use only- Returns:
-
reset
-
invalidate
public void invalidate() -
isInvalidated
public boolean isInvalidated() -
setChannelMap
-
getDfhaid
-
getEibaid
-
getUserId
-
setUserId
-
getChannelMap
-
abendtTask
public void abendtTask() -
isAbend
public boolean isAbend() -
createOrRetrieveContainerListFromChannel
-
copyChannelForSTART
Create a deep copy of a single channel (and its containers) to be used as input for a new TaskContext created by EXEC CICS START ... CHANNEL(channelName).- Parameters:
channelName- the channel to copy from this task
-
storeUserDAO
-
getUserDAO
-
getUserDAO
-
getMemoryManager
-
getTransactionId
-
setTransactionId
-
getCurrentProgramName
-
setCurrentProgramName
-
getProcessType
-
setProcessType
-
getRunStatus
-
setRunStatus
-
clearAllProgramsDAOCalledInthisTaskContext
public void clearAllProgramsDAOCalledInthisTaskContext() -
releaseActiveSessionProgram
public void releaseActiveSessionProgram() -
getSessionIdStartingProgram
-