MainframeMaster

CICS Process Management

Process management in CICS (via BTS) structures long-running, stateful business workflows into activities with compensation and recovery. This page summarizes common operations.

Common Operations

cobol
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
* Inquire process EXEC CICS INQUIRE PROCESS('ORDER-BP') RESP(WS-RESP) END-EXEC. * Connect to a running process EXEC CICS CONNECT PROCESS('ORDER-BP') ACTIVITYID('ORD-001') RESP(WS-RESP) END-EXEC. * Signal an event within a process EXEC CICS SIGNAL EVENT('STEP-COMPLETE') RESP(WS-RESP) END-EXEC.

Defining Processes and Activities

cobol
1
2
3
4
* RDO definitions (conceptual) CEDA DEFINE PROCESS(ORDER-BP) GROUP(BTS-GRP) CEDA DEFINE ACTIVITY(PROCESS-ORDER) PROGRAM(ORDPROC) GROUP(BTS-GRP) CEDA INSTALL GROUP(BTS-GRP)

Compensation Pattern

Ensure each mutating activity has a compensating counterpart for rollback of prior steps.

Error Handling

  • NOTFND on INQUIRE/CONNECT: verify process instance exists and IDs match.
  • INVREQ: definition mismatch, missing attributes, or invalid state transitions.

Monitoring

Use CICS Explorer BTS views to observe processes, activities, and container contents in real time.