Class BTWorkOrderOperationInsert
java.lang.Object
overit.geocall.bl.BusinessTask<WorkOrderOperationInsertEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidExecutionBusinessTask<WorkOrderOperationInsertEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidPermissionBusinessTask<WorkOrderOperationInsertEvent>
overit.geocallapp.wfm.workorders.bl.operation.task.BTWorkOrderOperationInsert
- All Implemented Interfaces:
Serializable,Tool,ValidExecution
@Event(WorkOrderOperationInsertEvent.class)
public class BTWorkOrderOperationInsert
extends ValidPermissionBusinessTask<WorkOrderOperationInsertEvent>
Business task in order to insert a
When the
BOWorkOrderOperation. When the
WorkOrderOperationInsertEvent is launched the BT notices the
call and inserts the BOWorkOrderOperation basing on the event's
input. Permission:
Error Code:
Codes.PROPERTY_REQUIREDCodes.WorkOrderHeader.UNMODIFIABLE_STATUSCodes.WorkOrderOperation.EXECUTION_ORDER_ALREADY_DEFINED
Updates the related work order by adding the specified operation to the work
order operation's list
- Since:
- 16.0
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected List<BOWorkOrderOperation> protected WorkOrderHelperprotected BOWorkOrderHeaderprotected BOWorkOrderOperationFields inherited from class overit.geocallapp.utilities.core.bl.common.validexecution.ValidPermissionBusinessTask
LOG -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddDefaultValues(PoolKit poolKit) protected voidcompleteOperation(PoolKit poolKit) protected voidexecute(WorkOrderOperationInsertEvent event, PoolKit poolKit) Executes the actual business logic after validation has passed.booleanDetermines whether the current state is valid for execution.protected voidlaunchOperationStatusChangeEvent(PoolKit poolKit) Deprecated, for removal: This API element is subject to removal in a future version.protected voidsetInterventionGroup(PoolKit poolKit) protected voidupdateOperationsOrdering(PoolKit poolKit) Methods inherited from class overit.geocallapp.utilities.core.bl.common.validexecution.ValidPermissionBusinessTask
checkValidExecution, getException, throwExceptionIfInvalidMethods inherited from class overit.geocallapp.utilities.core.bl.common.validexecution.ValidExecutionBusinessTask
body, getEventMethods inherited from class overit.geocall.bl.BusinessTask
start, start, startAlone, startInBackground
-
Field Details
-
workOrderHeader
-
workOrderOperation
-
currentWOOperations
-
helper
-
-
Constructor Details
-
BTWorkOrderOperationInsert
public BTWorkOrderOperationInsert()
-
-
Method Details
-
isValidExecution
public boolean isValidExecution()Description copied from interface:ValidExecutionDetermines whether the current state is valid for execution.- Returns:
- true if execution is valid, false otherwise
-
execute
protected void execute(WorkOrderOperationInsertEvent event, PoolKit poolKit) throws DAException, DAValidateException Description copied from class:ValidExecutionBusinessTaskExecutes the actual business logic after validation has passed.- Specified by:
executein classValidExecutionBusinessTask<WorkOrderOperationInsertEvent>- Parameters:
event- the input event to processpoolKit- thePoolKit- Throws:
DAException- if a data access error occurs during executionDAValidateException- if validation fails during execution
-
completeOperation
- Throws:
DAValidateExceptionDAException
-
addDefaultValues
- Throws:
DAValidateExceptionDAException
-
setInterventionGroup
- Throws:
DAValidateExceptionDAException
-
launchOperationStatusChangeEvent
@Deprecated(since="20.1", forRemoval=true) protected void launchOperationStatusChangeEvent(PoolKit poolKit) throws DAException, DAValidateException Deprecated, for removal: This API element is subject to removal in a future version.- Throws:
DAExceptionDAValidateException
-
updateOperationsOrdering
- Throws:
DAValidateExceptionDAException
-