# system.kanoa.cmms.addWorkOrderEventStatusCategory(statusCategoryInfo, userId)

Creates a new work order event status category record. Status categories are a grouping/classification layer above individual work-order-event statuses � 
for example, categorizing statuses like "Open" or "Assigned" under a broader category such as "Active", versus "Closed" or "Cancelled" under "Complete". 
All keys in `statusCategoryInfo` are required; the call will fail if any key is omitted. 
On success, the newly created status category's id is returned along with a `None` message.

---
### Parameters
**statusCategoryInfo** `Dictionary`<br />
<table class='dictionaryKeyTable'>
	<tbody>
 	<tr><td> - enabled</td><td>Boolean</td><td></td></tr>	
 	<tr><td> - isActive</td><td>Boolean</td><td></td></tr>	
 	<tr><td> - workOrderEventStatusCategoryName</td><td>String</td><td>Name of status category</td></tr>	
	</tbody>
</table>

**userId** `Integer`:Id of the user executing the function<br />

---
### Returns
**workOrderStatusCategoryId** `Integer`<br />
**message** `String` None if success<br />

---
### Example
```python
statusCategoryInfo = {
						"workOrderEventStatusCategoryName": "Active",
						"enabled": True,
						"isActive": True,
					}
userId = system.kanoa.security.getIDPUserId({'userName': 'SYSTEM'})
workOrderStatusCategoryId, message = system.kanoa.cmms.addWorkOrderEventStatusCategory(statusCategoryInfo, userId)
print workOrderStatusCategoryId, message
```
