Class: WorkOrderService

WorkOrderService

Service layer for Work Order operations. Implements business logic and orchestrates repository operations. Follows SOLID principles and Clean Architecture patterns.

new WorkOrderService()

Interactions/IFC/interact/GoIFCComponents/Components/WorkOrderComponent/src/services/WorkOrderService.ts, line 12

Methods

asynccreateWorkOrder(workOrder)

Interactions/IFC/interact/GoIFCComponents/Components/WorkOrderComponent/src/services/WorkOrderService.ts, line 22

Creates a new work order with business validation.

Name Type Description
workOrder

The work order data to create

Returns:
Promise resolving to the created work order

asyncgetStoredWorkOrders(appId, modelId, group, view)

Interactions/IFC/interact/GoIFCComponents/Components/WorkOrderComponent/src/services/WorkOrderService.ts, line 47

Retrieves stored work orders (with persisted coordinates) for a specific context.

Name Type Description
appId

Application identifier

modelId

Model identifier

group

Group identifier

view

View identifier

Returns:
Promise resolving to stored work orders

asyncgetWorkOrderMetadata()

Interactions/IFC/interact/GoIFCComponents/Components/WorkOrderComponent/src/services/WorkOrderService.ts, line 65

Retrieves work order metadata.

Returns:
Promise resolving to metadata

asyncgetWorkOrders(appId, modelId, group, view)

Interactions/IFC/interact/GoIFCComponents/Components/WorkOrderComponent/src/services/WorkOrderService.ts, line 35

Retrieves newly added work orders for a specific context.

Name Type Description
appId

Application identifier

modelId

Model identifier

group

Group identifier

view

View identifier

Returns:
Promise resolving to new work orders

asyncupdateWorkOrderCoordinates(params)

Interactions/IFC/interact/GoIFCComponents/Components/WorkOrderComponent/src/services/WorkOrderService.ts, line 56

Updates coordinates for a work order with validation.

Name Type Description
params

Parameters for coordinate update

Returns:
Promise resolving to the update result

validateCoordinateUpdate(params)

Interactions/IFC/interact/GoIFCComponents/Components/WorkOrderComponent/src/services/WorkOrderService.ts, line 105

Validates coordinate update parameters.

Name Type Description
params

Coordinate update parameters

Throws:

Error if validation fails

validateWorkOrderCreation(workOrder)

Interactions/IFC/interact/GoIFCComponents/Components/WorkOrderComponent/src/services/WorkOrderService.ts, line 74

Validates work order creation data.

Name Type Description
workOrder

Work order data to validate

Throws:

Error if validation fails