Class CustomFormCollectionBuilder

Object
ObjectIdentity
AbstractBuilder

public class CustomFormCollectionBuilder extends CalculableLineItemCollectionBuilder<CustomFormCollectionBuilder>
CustomFormCollectionBuilder is the starting point of an interface that allows you to manipulate a custom form object in a custom form header calculation logic.
The header calculation is executed twice: Once as 'pre phase' and once after that as 'post phase'.
Use isPrePhase() and isPostPhase() methods to detect the current phase.
The custom form builder is available in the header logic by this call:
def processor = customFormProcessor

IMPORTANT: Please read super class notes on the sequence of execution!
  • Constructor Details

    • CustomFormCollectionBuilder

      public CustomFormCollectionBuilder(String instanceId, String classId, IdGenerator idGenerator, Invocations<MethodInvocation> invocations, Map<String,Object> view, HeaderPhase phase)
  • Method Details

    • build

      public CustomFormBuilderResult build()
      Creates an instance of CustomFormBuilderResult with the invocations accumulated in this builder instance
      Specified by:
      build in class AbstractBuilder
      Returns:
      a CustomFormBuilderResult instance
    • getHelper

      public LineItemHelper getHelper()
      Gets a helper class that assists in manipulating the custom form
      Returns:
      The helper object