All Implemented Interfaces:
Serializable, Tool, ValidExecution

Business task in order to update a BOTask.
When the TaskUpdateEvent is launched the BT notices the call and updates the BOTask basing on the event's input.

Error Code:

Since:
9.2
See Also:
GCApi:
task
  • Constructor Details

    • BTTaskUpdate

      public BTTaskUpdate()
  • Method Details

    • execute

      protected void execute(TaskUpdateEvent event, PoolKit pk) throws DAException, DAValidateException
      Updates the BOTask with all its needed components, except for his state.
      Specified by:
      execute in class ValidExecutionBusinessTask<TaskUpdateEvent>
      Parameters:
      event - the event
      pk - the pool kit
      Throws:
      DAException - the DA exception
      DAValidateException - the DA validate exception
    • checkBeforeUpdate

      protected void checkBeforeUpdate(BOTask task) throws DAValidateException
      Checks and validates the data before the update.
      Parameters:
      task - the task
      Throws:
      DAValidateException - the DA validate exception
    • prepareFilterData

      protected HashMap<String,Object> prepareFilterData(BOTask task)
      Prepares the filter data in order to load the correct record to update.
      Parameters:
      task - the BOTask to update
      Returns:
      the hash map that is going to be used as filter to update the task
    • prepareUpdateData

      protected HashMap<String,Object> prepareUpdateData(BOTask task)
      Prepares the data that is going to be updated in the selected timesheet task. The state cannot be updated by this process, therefore is removed.
      Parameters:
      task - the BOTask which contains the update data
      Returns:
      the hash map that is going to be used as new values to update the task
    • isValidExecution

      public boolean isValidExecution()
      Description copied from interface: ValidExecution
      Determines whether the current state is valid for execution.
      Returns:
      true if execution is valid, false otherwise