Class BTOperationActivityUpdate
java.lang.Object
overit.geocall.bl.BusinessTask<OperationActivityUpdateEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidExecutionBusinessTask<OperationActivityUpdateEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidPermissionBusinessTask<OperationActivityUpdateEvent>
overit.geocallapp.wfm.core.bl.workorder.operationactivity.task.BTOperationActivityUpdate
- All Implemented Interfaces:
Serializable,Tool,ValidExecution
@Event(OperationActivityUpdateEvent.class)
public class BTOperationActivityUpdate
extends ValidPermissionBusinessTask<OperationActivityUpdateEvent>
Business task in order to update a
When the
BOOperationActivity.When the
OperationActivityUpdateEvent is launched the BT notices the
call and updates the BOOperationActivity basing on the event's input.
Required fields:
- Operation Activity id
Permission:
Error Code:
Codes.C270_0849: Activity to update not definedCodes.C270_0697: Code not definedCodes.C270_0673: Intervention group not definedCodes.C270_0962: Scheduling type not definedCodes.MISSING_REQUIRED_MULTILANGUAGE_VALUES: Missing required multilanguage values for the propertyCodes.C270_1334: Cannot insert activity. There is another activity with the same code description
- Since:
- 9.2
- See Also:
- GCApi:
- task
-
Field Summary
Fields inherited from class overit.geocallapp.utilities.core.bl.common.validexecution.ValidPermissionBusinessTask
LOG -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidafterUpdate(BOOperationActivity bo, PoolKit pk) Actions to perform after the insertionprotected voidexecute(OperationActivityUpdateEvent event, PoolKit pk) Updates a newBOOperationActivitywith all its needed components.booleanDetermines whether the current state is valid for execution.protected voidvalidate(BOOperationActivity boActivity, PoolKit pk) Checks if the update is possible by performing some validations on the givenBOOperationActivityMethods 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
-
Constructor Details
-
BTOperationActivityUpdate
public BTOperationActivityUpdate()
-
-
Method Details
-
execute
protected void execute(OperationActivityUpdateEvent event, PoolKit pk) throws DAException, DAValidateException Updates a newBOOperationActivitywith all its needed components.- Specified by:
executein classValidExecutionBusinessTask<OperationActivityUpdateEvent>- Parameters:
event- the eventpk- the pool kit- Throws:
DAException- the DA exceptionDAValidateException- the DA validate exception
-
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
-
validate
protected void validate(BOOperationActivity boActivity, PoolKit pk) throws DAValidateException, DAException Checks if the update is possible by performing some validations on the givenBOOperationActivity- Parameters:
boActivity- the operation activitypk- the pool kit- Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-
afterUpdate
Actions to perform after the insertion- Parameters:
bo- the operation activitypk- the pool kit
-