Class PageTemplatingWorkflowProcess
- java.lang.Object
-
- com.composum.ai.aem.core.impl.autotranslate.workflow.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 theAITemplatingServiceon 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 Summary
Fields Modifier and Type Field Description protected AITemplatingServiceaiTemplatingServiceprotected com.google.gson.Gsongson
-
Constructor Summary
Constructors Constructor Description PageTemplatingWorkflowProcess()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexecute(com.adobe.granite.workflow.exec.WorkItem workItem, com.adobe.granite.workflow.WorkflowSession workflowSession, com.adobe.granite.workflow.metadata.MetaDataMap metaDataMap)protected booleanisReset(com.adobe.granite.workflow.exec.WorkItem workItem, com.adobe.granite.workflow.metadata.MetaDataMap metaDataMap)
-
-
-
Field Detail
-
aiTemplatingService
protected AITemplatingService aiTemplatingService
-
gson
protected final com.google.gson.Gson gson
-
-
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:
executein interfacecom.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
-
-