<moqui.basic.EnumerationenumCode="mjmlSaveLocation"description="Place to save Mjml Emails (empty will not save anything)"enumId="PsstMjmlSaveLocation"enumTypeId="ProductStoreSettingType"/>
<moqui.basic.EnumerationenumCode="mjmlSaveOnPublish"description="Whether to save Mjml Emails only on publish (true/false) (empty will only save on publish)"enumId="PsstMjmlSaveOnPublish"enumTypeId="ProductStoreSettingType"/>
<description>Store GrapesJs resource. Can be adapted to entity other than EmailTemplate, but must have data for the grapesLocation and htmlLocation to ensure safety of read and write of resources.</description>
<description>Given a html and grapes location, save them to a configurable resource uri on the MjmlFlushEmailToOnSave seca.
Could have a generic implementation that uses a hierarchical conditional structure of basic config like an EntitySyncConfig on DbResource GRAPESJS_PROJECT to component://moqui-mjml/dbresource/grapesjs/project</description>
<ifcondition="!productStoreId"><returnmessage="Defaulting to not saving email, because no productStoreId found for emailTemplateId ${emailTemplateId}"/></if>
<ifcondition="locationStoreSettingList.size() == 0"><returnmessage="No location setting found for productStoreId ${productStoreId} for emailTemplateId ${emailTemplateId}"/></if>
<ifcondition="saveOnlyOnPublish && !publish"><returntype="warning"message="Not saving email on save because saveOnlyOnPublish is true and publish is false"/></if>