Class BTDataCollectionTemplateAlignExpressionsEvaluationOrder
java.lang.Object
overit.geocall.bl.BusinessTask<DataCollectionTemplateAlignExpressionsEvaluationOrderEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidExecutionBusinessTask<DataCollectionTemplateAlignExpressionsEvaluationOrderEvent>
overit.geocallapp.wfm.mobileforms.bl.task.BTDataCollection<DataCollectionTemplateAlignExpressionsEvaluationOrderEvent>
overit.geocallapp.wfm.core.bl.datacollection.template.task.BTDataCollectionTemplateAlignExpressionsEvaluationOrder
- All Implemented Interfaces:
Serializable,Tool,ValidExecution
@Event(DataCollectionTemplateAlignExpressionsEvaluationOrderEvent.class)
public class BTDataCollectionTemplateAlignExpressionsEvaluationOrder
extends BTDataCollection<DataCollectionTemplateAlignExpressionsEvaluationOrderEvent>
Business task in order to order the expression evaluation of a
When the
DataCollectionTemplate. When the
DataCollectionTemplateAlignExpressionsEvaluationOrderEvent is launched
the BT notices the call and orders the DataCollectionTemplate expressions evaluation basing on the event's input. Errors:
Visibility:
- nodes that belong to the same current user's operation center
- node expressions that belong to the same current user's operation center
- Since:
- 12.0
- See Also:
- GCApi:
- task
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected com.google.common.graph.Network<DataCollectionEntityExpressions, DataCollectionNodeExpressions> buildExpressionsNetwork(TreeModel<DataCollectionNode> treeModel) Builds the expressions network.protected voidexecute(DataCollectionTemplateAlignExpressionsEvaluationOrderEvent event, PoolKit poolKit) Deletes the previously evaluation order and sets the new one.protected List<DataCollectionEntityExpressions> getSortedNetworkNodes(com.google.common.graph.Network<DataCollectionEntityExpressions, DataCollectionNodeExpressions> network) Returns the sorted network nodes.protected voidresetEvaluationOrder(TreeModel<DataCollectionNode> treeModel) Resets the evaluation order.protected voidsetNewEvaluationOrder(com.google.common.graph.Network<DataCollectionEntityExpressions, DataCollectionNodeExpressions> expressionsNetwork) Sets the new evaluation order.Methods inherited from class overit.geocallapp.wfm.mobileforms.bl.task.BTDataCollection
getException, isValidExecution, throwExceptionIfInvalidMethods inherited from class overit.geocallapp.utilities.core.bl.common.validexecution.ValidExecutionBusinessTask
body, checkValidExecution, getEventMethods inherited from class overit.geocall.bl.BusinessTask
start, start, startAlone, startInBackground
-
Constructor Details
-
BTDataCollectionTemplateAlignExpressionsEvaluationOrder
public BTDataCollectionTemplateAlignExpressionsEvaluationOrder()
-
-
Method Details
-
execute
protected void execute(DataCollectionTemplateAlignExpressionsEvaluationOrderEvent event, PoolKit poolKit) throws DAException, DAValidateException Deletes the previously evaluation order and sets the new one.- Specified by:
executein classValidExecutionBusinessTask<DataCollectionTemplateAlignExpressionsEvaluationOrderEvent>- Parameters:
event- theDataCollectionTemplateAlignExpressionsEvaluationOrderEventpoolKit- thePoolKit- Throws:
DAException- the DA exceptionDAValidateException- the DA validate exception
-
buildExpressionsNetwork
protected com.google.common.graph.Network<DataCollectionEntityExpressions,DataCollectionNodeExpressions> buildExpressionsNetwork(TreeModel<DataCollectionNode> treeModel) Builds the expressions network.- Parameters:
treeModel- theTreeModel- Returns:
- the network
-
resetEvaluationOrder
Resets the evaluation order.- Parameters:
treeModel- theTreeModel
-
setNewEvaluationOrder
protected void setNewEvaluationOrder(com.google.common.graph.Network<DataCollectionEntityExpressions, DataCollectionNodeExpressions> expressionsNetwork) throws DAValidateExceptionSets the new evaluation order.- Parameters:
expressionsNetwork- the expressionsNetwork- Throws:
DAValidateException- the DA validate exception
-
getSortedNetworkNodes
protected List<DataCollectionEntityExpressions> getSortedNetworkNodes(com.google.common.graph.Network<DataCollectionEntityExpressions, DataCollectionNodeExpressions> network) throws DAValidateExceptionReturns the sorted network nodes.- Parameters:
network- theNetwork- Returns:
- a list of data collection node elements of type DataCollectionNode
- Throws:
DAValidateException- the DA validate exception- See Also:
-