---
title: "system.mes.getCurrentOperations"
id: "system-mes-getcurrentoperations"
project: "MES User Manual"
url: "https://docs.sepasoft.com/articles/user-manual/system-mes-getcurrentoperations"
updated: 2026-07-31T14:55:01Z
---

# system\.mes\.getCurrentOperations

**Sepasoft MES Module Suite**

### system.mes.getCurrentOperations(equipmentPath)

Get the current operations response objects that are currently running for the equipment specified by the equipmentPath parameter.

Syntax

**system.mes.getCurrentOperations(equipmentPath)**

* Parameters

String **equipmentPath** - Equipment path of the equipment to return the current operations response objects for.

* Returns

A [MESObjectList](/articles/user-manual/MES-Object-List) object that holds a collections operations response objects that are currently active for the equipment.

* Scope

All

Code Example
 
```python
operations = system.mes.getCurrentOperations('[global]\Enterprise\Site\Area\Line 3')
for op in operations:
    for seg in op.getActiveSegmentNames():
        print op.getActiveSegment(seg)
```

Output

```python
ResponseSegment (57b24812-fe82-4840-a84f-34d8b25e132d, MatDef1-Enterprise:Site:Area:Line 3, 0 parents, 0 children, 0 custom properties, 7 complex properties)
ResponseSegment (6bf8f70f-2309-4c08-a7f6-f06fe78b11a7, MatDef2-Enterprise:Site:Area:Line 3, 0 parents, 0 children, 0 custom properties, 7 complex properties)
```


Code Example


```python
#specify path for which the current operations are to be listed
eqPath = 'Enterprise\Site\Area\Line 1'
list = system.mes.getCurrentOperations(eqPath)
for i in range(list.size()):
	print list.get(i) 
```

Output

Code

```
OperationsResponse (becc61f8-86ca-44fe-9345-626a6ab9151d, PC-002-Enterprise:Site:Area:Line 1, 0 parents, 0 children, 0 custom properties, 1 complex properties) 
```


**Sepasoft MES Module Suite**