Class BTInterventionCensusRuleSearch
java.lang.Object
overit.geocall.bl.BusinessTask<InterventionCensusRuleSearchEvent>
overit.geocallapp.wfm.orchestrator.workorders.bl.intervention.censusrule.task.BTInterventionCensusRuleSearch
- All Implemented Interfaces:
Serializable,Tool
@Event(InterventionCensusRuleSearchEvent.class)
public class BTInterventionCensusRuleSearch
extends BusinessTask<InterventionCensusRuleSearchEvent>
Business task in order to search for
When the
BOCensusRule linked to the given BOIntervention. When the
InterventionCensusRuleSearchEvent is launched the BT notices the call
and searches the BOCensusRule according to the event's input. - Since:
- 20.0
- See Also:
- GCApi:
- task
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidbody(InterventionCensusRuleSearchEvent event, PoolKit pk) Writes the searched census rules associated to the givenBOInterventioninto the event journal.protected WorkOrdersIntegrationServiceRetrieves theWorkOrdersIntegrationServiceinstance.Methods inherited from class overit.geocall.bl.BusinessTask
start, start, startAlone, startInBackground
-
Constructor Details
-
BTInterventionCensusRuleSearch
public BTInterventionCensusRuleSearch()
-
-
Method Details
-
getIntegrationService
Retrieves theWorkOrdersIntegrationServiceinstance. If the instance hasn't been created yet, it will be created and stored for future use.- Parameters:
pk- ThePoolKit.- Returns:
- The
WorkOrdersIntegrationServiceinstance. - Throws:
DAValidateException- If any validation error occurs.
-
body
protected void body(InterventionCensusRuleSearchEvent event, PoolKit pk) throws DAException, DAValidateException Writes the searched census rules associated to the givenBOInterventioninto the event journal.Steps:
- Retrieves the intervention group from the
BOWorkOrderOperationassociated with the intervention - Retrieves the census rules linked to the intervention group
- Specified by:
bodyin classBusinessTask<InterventionCensusRuleSearchEvent>- Parameters:
event- theInterventionCensusRuleSearchEventpk- thePoolKit- Throws:
DAException- the DA exceptionDAValidateException- the DA validate exception
- Retrieves the intervention group from the
-