Class BTImmediateSchedulingResourceExclusionBatchInsert
java.lang.Object
overit.geocall.bl.BusinessTask<ImmediateSchedulingResourceExclusionBatchInsertEvent>
overit.geocallapp.wfm.scheduling.bl.immediatescheduling.processing.resourceexclusion.task.BTImmediateSchedulingResourceExclusionBatchInsert
- All Implemented Interfaces:
Serializable,Tool
@Event(ImmediateSchedulingResourceExclusionBatchInsertEvent.class)
public class BTImmediateSchedulingResourceExclusionBatchInsert
extends BusinessTask<ImmediateSchedulingResourceExclusionBatchInsertEvent>
Business task for batch inserting immediate scheduling resource exclusions.
When the ImmediateSchedulingResourceExclusionBatchInsertEvent is launched,
this task inserts all the BOImmediateSchedulingResourceExclusion records
using batch processing for better performance.
- Since:
- 22.0
- See Also:
- GCApi:
- task
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidbatchInsert(ImmediateSchedulingResourceExclusionBatchInsertInput input, PoolKit poolKit) Performs batch insert of resource exclusions.protected voidbody(ImmediateSchedulingResourceExclusionBatchInsertEvent event, PoolKit poolKit) Implements this method to write the specific task logic to handle the input parameter.Methods inherited from class overit.geocall.bl.BusinessTask
start, start, startAlone, startInBackground
-
Constructor Details
-
BTImmediateSchedulingResourceExclusionBatchInsert
public BTImmediateSchedulingResourceExclusionBatchInsert()
-
-
Method Details
-
body
protected void body(ImmediateSchedulingResourceExclusionBatchInsertEvent event, PoolKit poolKit) throws DAException, DAValidateException Description copied from class:BusinessTaskImplements this method to write the specific task logic to handle the input parameter.- Specified by:
bodyin classBusinessTask<ImmediateSchedulingResourceExclusionBatchInsertEvent>- Parameters:
event- the object upon which the task will works onpoolKit- the poolkit containing the reference to the database connection that can be used- Throws:
DAException- in case of database errorDAValidateException- in case of database validation error
-
batchInsert
protected void batchInsert(ImmediateSchedulingResourceExclusionBatchInsertInput input, PoolKit poolKit) throws DAException, DAValidateException Performs batch insert of resource exclusions.- Parameters:
input- the input containing processing ID, resource IDs, and exclusion reasonpoolKit- the pool kit- Throws:
DAException- if a data access error occursDAValidateException- if a validation error occurs
-