Class BTEvaluateProjectActivitiesStatus
java.lang.Object
overit.geocall.bl.BusinessTask<EvaluateProjectActivitiesStatusEvent>
overit.geocallapp.wfm.project.bl.status.task.BTEvaluateProjectActivitiesStatus
- All Implemented Interfaces:
Serializable,Tool
@Event(EvaluateProjectActivitiesStatusEvent.class)
public class BTEvaluateProjectActivitiesStatus
extends BusinessTask<EvaluateProjectActivitiesStatusEvent>
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected List<BOProjectActivity> protected Projectprotected ProjectTree -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidbody(EvaluateProjectActivitiesStatusEvent event, PoolKit pk) Implements this method to write the specific task logic to handle the input parameter.protected LongcalculateParentActivityStatus(List<BOProjectActivity> childrenActivities) protected voidcollectAllLeaves(ProjectTree node, List<BOProjectActivity> collector) protected voidprotected voidprotected longgetDotsNumber(String string) protected List<BOProjectActivity> protected booleanhasSiblings(ProjectTree node) protected voidinit(EvaluateProjectActivitiesStatusEvent event, PoolKit pk) Methods inherited from class overit.geocall.bl.BusinessTask
start, start, startAlone, startInBackground
-
Field Details
-
projectTree
-
project
-
activities
-
-
Constructor Details
-
BTEvaluateProjectActivitiesStatus
public BTEvaluateProjectActivitiesStatus()
-
-
Method Details
-
body
protected void body(EvaluateProjectActivitiesStatusEvent event, PoolKit pk) 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<EvaluateProjectActivitiesStatusEvent>- Parameters:
event- the object upon which the task will works onpk- 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
-
init
protected void init(EvaluateProjectActivitiesStatusEvent event, PoolKit pk) throws DAException, DAValidateException - Throws:
DAExceptionDAValidateException
-
evaluateAncestorActivitiesStatus
protected void evaluateAncestorActivitiesStatus() -
getLeavesLevelDescOrderedToProcess
-
getDotsNumber
-
collectAllLeaves
-
evaluateParentActivityStatus
-
hasSiblings
-
calculateParentActivityStatus
-