> For the complete documentation index, see [llms.txt](https://kb.theloops.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://kb.theloops.io/agentstudio/skills-library/human-capital-management/check-termination-process-readiness.md). Agents can also search and read this documentation through its [MCP server](https://kb.theloops.io/~gitbook/mcp).

# Check Termination Process Readiness

Determines whether one employment can enter Terminate Employment, with blockers and preparation items. Read-only except CheckIfValidEmployee validation POST.

| Business area            | Action type |
| ------------------------ | ----------- |
| Human Capital Management | Read-only   |

## Overview

In the Personnel File (page EmployeeForm using CompanyPersonSet) the command TerminateEmploymentCommand ("Terminate Employment") is visible when PersonId != null and enabled only when TerminationProcessId = null. It navigates to assistant/TerminateEmployment/Assistant (projection TerminateEmploymentHandling) with InitPersonelFile{CompanyIdVar, EmpNoVar}. In the assistant, the employee is validated with CheckIfValidEmployee(CompanyId, EmpNo), which raises an error if the user cannot access the employee or if the employee "has already been terminated or is part of an incomplete Termination Process" (Terminate\_Emp\_Activity\_Log\_API.Is\_Emp\_Part\_Of\_Termination), and the selection step requires employment periods (CheckEmploymentPeriodExist).

Reads personnel file and termination assistant validation.

## How it works

{% stepper %}
{% step %}
Context: CompanyPersonSet gates.
{% endstep %}

{% step %}
Validate: POST CheckIfValidEmployee (validation only)
{% endstep %}

{% step %}
Details: GetEmploymentDetails function.
{% endstep %}

{% step %}
Periods: PeriodsSet.
{% endstep %}

{% step %}
History: TerminateEmpActivityLogs.
{% endstep %}

{% step %}
Subordinates: PersonWithAllSups filter.
{% endstep %}
{% endstepper %}

## Key capabilities

* Reads the employment record and evaluates the command gates (PersonId != null, TerminationProcessId = null).
* Runs the assistant's own side-effect-free server validation CheckIfValidEmployee and maps its error messages.
* Reads current employment start/end dates, organization, position and status as the assistant shows them.
* Confirms that employment periods exist (assistant requirement) and whether a leaving date is already set.
* Lists existing termination processes with state (InProgress, Completed, Invalid) and open checklist items.
* Lists current subordinates of the person who will need reassignment.
* Produces a verdict with blockers, preparation items and the next step, never writes.

## Requirements

The following IFS Cloud components and projections must be available, with permission sets that grant access to each projection.

| Component | Projection                              |
| --------- | --------------------------------------- |
| PERSON    | PersonnelFileHandling                   |
| PERSON    | TerminateEmploymentHandling             |
| PERSON    | PersonnelFileEmployementPeriodsHandling |
| PERSON    | TerminateEmploymentLogsHandling         |

## Version compatibility

| Projection                              | Supported IFS Cloud releases |
| --------------------------------------- | ---------------------------- |
| PersonnelFileHandling                   | 24R2, 25R1, 25R2, 26R1, 26R2 |
| TerminateEmploymentHandling             | 24R2, 25R1, 25R2, 26R1, 26R2 |
| PersonnelFileEmployementPeriodsHandling | 24R2, 25R1, 25R2, 26R1, 26R2 |
| TerminateEmploymentLogsHandling         | 24R2, 25R1, 25R2, 26R1, 26R2 |

## Known limitations

* Read-only: does not create, update, or delete IFS Cloud data.
