Class QuoteMassUpdateAction<T extends Help>
- All Implemented Interfaces:
Help
Obtain it with CalculationFlowActionBuilder.addQuoteMassUpdateAction(String), which takes the label of an
existing Quote Mass Update. The action starts the job only when the logic calls setCalculate(true). If no
Quote Mass Update has this label, no job starts and the Calculation Flow does not report an error. If several have
this label, the Calculation Flow reports an error and the actions added after this one do not run.
The action always runs on a new copy of the Quote Mass Update, whatever setCopy(Boolean) sets, because
getCopy() returns the calculate flag. The copy runs as a simulation unless the logic calls
setSimulation(false).
Example:
actionBuilder.addQuoteMassUpdateAction('Monthly Repricing')
.setSimulation(false)
.setCopyLabel('Monthly Repricing (scheduled)')
.setCalculate(true)
- See Also:
-
Field Summary
Fields inherited from class Action
jobs -
Constructor Summary
ConstructorsConstructorDescriptionQuoteMassUpdateAction(T backLink, Invocations<MethodInvocationRecord> invocations, String qmuLabel) Not intended for public use. -
Method Summary
Modifier and TypeMethodDescriptionback()Returns the builder that added this action, so that the logic can add the next action in the same chain.Gets whether this action starts the Quote Mass Update.getCopy()Gets whether the action runs on a copy.Gets the comment of the copy.Gets the label of the copy.Not intended for public use.Gets the label of the Quote Mass Update that this action runs.Gets whether the copy runs as a simulation.setCalculate(Boolean calculate) Whether the action is valid and should be triggered or not.Whether the action should copy a quote mass update object and then run the copied one or not.setCopyComment(String copyComment) Comment that is passed also into submitter reason into workflow.setCopyLabel(String label) Sets the label of the copied quote mass update.setSimulation(Boolean simulation) Whether the action on copied object should be a simulation or not.toString()Returns a text representation of this action for debugging.
-
Constructor Details
-
QuoteMassUpdateAction
public QuoteMassUpdateAction(T backLink, Invocations<MethodInvocationRecord> invocations, String qmuLabel) Not intended for public use. An action created with this constructor is not added to the Calculation Flow, so it never runs. UseactionBuilder.addQuoteMassUpdateAction()instead.- See Also:
-
-
Method Details
-
setCalculate
Whether the action is valid and should be triggered or not.- Parameters:
calculate-- true - calculation of the Quote Mass Update is started as background process
- false - calculation of the Quote Mass Update is NOT started at all
- Returns:
- this action, for further configuration
-
setCopy
Whether the action should copy a quote mass update object and then run the copied one or not.This setting has no effect at the moment: the action always runs on a copy. See the class description.
- Parameters:
copy-- true - a quote mass update should be copied before execution
- false - intended to run the execution on the original object
- Returns:
- this action, for further configuration
-
setSimulation
Whether the action on copied object should be a simulation or not. Withtrue, the copy runs as a simulation. Withfalse, it runs as an update.- Parameters:
simulation- true by default- Returns:
- this action, for further configuration
-
setCopyLabel
Sets the label of the copied quote mass update. If you do not set it, the copy gets the label of the original followed byCFcopy(and six random characters in brackets.- Parameters:
label- the label of the copy- Returns:
- this action, for further configuration
-
setCopyComment
Comment that is passed also into submitter reason into workflow. The action sets it as the comment of the copied quote mass update.- Parameters:
copyComment- the comment- Returns:
- this action, for further configuration
-
back
Returns the builder that added this action, so that the logic can add the next action in the same chain.- Returns:
- the
actionBuilderthat added this action - See Also:
-
getObjectName
Not intended for public use.- Returns:
- the name of the builder that added this action, followed by
".QuoteMassUpdateAction"
-
getQuoteMassUpdateLabel
Gets the label of the Quote Mass Update that this action runs.- Returns:
- the label passed to
CalculationFlowActionBuilder.addQuoteMassUpdateAction(String)
-
getCalculate
Gets whether this action starts the Quote Mass Update.- Returns:
trueaftersetCalculate(true), otherwisefalse- See Also:
-
getCopy
Gets whether the action runs on a copy. This method returns thecalculateflag, not the value set withsetCopy(Boolean).- Returns:
- the value of the
calculateflag
-
getSimulation
Gets whether the copy runs as a simulation.- Returns:
- the value set with
setSimulation(Boolean),trueif it was not set
-
getCopyLabel
Gets the label of the copy.- Returns:
- the label set with
setCopyLabel(String)
-
getCopyComment
Gets the comment of the copy.- Returns:
- the comment set with
setCopyComment(String)
-
toString
Returns a text representation of this action for debugging.
-