Class BTTechnicalObjectWithFeaturesInsert
java.lang.Object
overit.geocall.bl.BusinessTask<TechnicalObjectWithFeaturesInsertEvent>
overit.geocallapp.wfm.core.bl.technicalobject.task.BTTechnicalObjectWithFeaturesInsert
- All Implemented Interfaces:
Serializable,Tool
@Event(TechnicalObjectWithFeaturesInsertEvent.class)
public class BTTechnicalObjectWithFeaturesInsert
extends BusinessTask<TechnicalObjectWithFeaturesInsertEvent>
Business task in order to insert a
When the
TechnicalObject and its feature values. When the
TechnicalObjectWithFeaturesInsertEvent is launched
the BT notices the call and inserts the TechnicalObject and its feature values basing on the event's input.
Re call the method BTTechnicalObjectInsert
Insert dummy contact record
Insert customer characteristics
- Since:
- 9.2
- See Also:
- GCApi:
- task
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidbody(TechnicalObjectWithFeaturesInsertEvent event, PoolKit poolKit) Inserts a newTechnicalObjectwith all its needed components, i.e. the master data along with the address informations and the feature values.protected voidinsertFakeContact(Long addressId, PoolKit poolKit) Insert the given contactsprotected LongloadAddressId(Long headerId, PoolKit poolKit) Load the id of the new addressprotected voidupdateRoot(BOTechnicalObjectHeader technicalObjectHeader, Long technicalObjectId, PoolKit poolkit) If the newTechnicalObjecthas no parent, its own id is set as both parent and root.Methods inherited from class overit.geocall.bl.BusinessTask
start, start, startAlone, startInBackground
-
Constructor Details
-
BTTechnicalObjectWithFeaturesInsert
public BTTechnicalObjectWithFeaturesInsert()
-
-
Method Details
-
body
protected void body(TechnicalObjectWithFeaturesInsertEvent event, PoolKit poolKit) throws DAException, DAValidateException Inserts a newTechnicalObjectwith all its needed components, i.e. the master data along with the address informations and the feature values. The id of the just inserted object is written into the journal of the event.- Specified by:
bodyin classBusinessTask<TechnicalObjectWithFeaturesInsertEvent>- Parameters:
event- theTechnicalObjectWithFeaturesInsertEventpoolKit- thePoolKit- Throws:
DAException- the DA exceptionDAValidateException- the DA validate exception
-
updateRoot
protected void updateRoot(BOTechnicalObjectHeader technicalObjectHeader, Long technicalObjectId, PoolKit poolkit) throws DAException, DAValidateException If the newTechnicalObjecthas no parent, its own id is set as both parent and root.- Parameters:
technicalObjectHeader- the new technical object headertechnicalObjectId- the id of the new technical objectpoolkit- the pool kit- Throws:
DAException- the DA exceptionDAValidateException- the DA validate exception
-
insertFakeContact
protected void insertFakeContact(Long addressId, PoolKit poolKit) throws DAValidateException, DAException Insert the given contacts- Parameters:
addressId- address id to link the contactspoolKit- the Pool-kit to keep the transaction- Throws:
DAValidateExceptionDAException
-
loadAddressId
protected Long loadAddressId(Long headerId, PoolKit poolKit) throws DAValidateException, DAException Load the id of the new address- Parameters:
headerId- the just created header idpoolKit- the Pool-kit to keep the transaction- Returns:
- the id of the new address id
- Throws:
DAValidateExceptionDAException
-