Class ProcessTemplateCmd

    • Method Detail

      • composeVariationKey

        protected String composeVariationKey​(TemplateModel templateModel,
                                             Map<String,​Object> variant)
        Creates the variation key which is a combination of all variant values or 'none' for none-existing ones to compose a single and unique variation key.
        Parameters:
        templateModel - the template definition model used to get the available and necessary variation keys
        variant - the variant holding variation values to compose the key from
        Returns:
        the composed variation key
      • composeVariationKey

        protected String composeVariationKey​(TemplateModel templateModel,
                                             Map<String,​Object> variant,
                                             boolean forceDefault)
        Creates the variation key which is a combination of all variant values or 'none' for none-existing ones to compose a single and unique variation key.
        Parameters:
        templateModel - the template definition model used to get the available and necessary variation keys
        variant - the variant holding variation values to compose the key from
        forceDefault - forces the use of default values if true
        Returns:
        the composed variation key
      • checkPayloadParameters

        protected void checkPayloadParameters​(TemplateHolder template,
                                              Map<String,​Object> payload)
        Checks the payload to contain at least the mandatory parameter values according the template variation model.
        Parameters:
        template - the template information where the parameters are described
        payload - the payload with the necessary parameter values to be checked
        Throws:
        FlowableIllegalArgumentException - is thrown if at least one mandatory parameter is missing