Class PageTemplatingWorkflowProcess

  • All Implemented Interfaces:
    com.adobe.granite.workflow.exec.WorkflowProcess

    public class PageTemplatingWorkflowProcess
    extends Object
    implements com.adobe.granite.workflow.exec.WorkflowProcess
    Triggers a call of the AITemplatingService on the current page. If parameter "reset" is given, it does a resetToPrompts instead. As process arguments it can be given a json {"reset":true} to reset the page to prompts. The URL as source needs to be in the page somewhere.
    See Also:
    "https://ai.composum.com/aiPageTemplating.html"
    • Field Detail

      • gson

        protected final com.google.gson.Gson gson
    • Constructor Detail

      • PageTemplatingWorkflowProcess

        public PageTemplatingWorkflowProcess()
    • Method Detail

      • execute

        public void execute​(com.adobe.granite.workflow.exec.WorkItem workItem,
                            com.adobe.granite.workflow.WorkflowSession workflowSession,
                            com.adobe.granite.workflow.metadata.MetaDataMap metaDataMap)
                     throws com.adobe.granite.workflow.WorkflowException
        Specified by:
        execute in interface com.adobe.granite.workflow.exec.WorkflowProcess
        Throws:
        com.adobe.granite.workflow.WorkflowException
      • isReset

        protected boolean isReset​(com.adobe.granite.workflow.exec.WorkItem workItem,
                                  com.adobe.granite.workflow.metadata.MetaDataMap metaDataMap)
                           throws com.adobe.granite.workflow.WorkflowException
        Throws:
        com.adobe.granite.workflow.WorkflowException