adobe-consulting-services.github.io
adobe-consulting-services.github.io copied to clipboard
Synthetic Workflow docs' example has compile errors
- [ ] AEM Version:
6.5
- [ ] ACS AEM Commons Version:
4.0.0
- [ ] Reproducible on Latest? yes
Expected Behavior
Example Code: Synthetic Workflow by Workflow Process Name from the docs compiles and runs out of the box.
Actual Behavior
Example Code: Synthetic Workflow by Workflow Process Name from the docs produces the following error:
Unable to compile class for JSP: An error occurred at line: 56 in the jsp file: /apps/acs-tools/components/aemfiddle/fiddle/fiddle.jsp The method execute(ResourceResolver, String, SyntheticWorkflowModel, boolean, boolean) in the type SyntheticWorkflowRunner is not applicable for the arguments (ResourceResolver, String, String[], Map<String,Map<String,Object>>, boolean, boolean) 53: boolean saveAfterEachWFProcess = false; 54: boolean saveAtEndOfAllWFProcesses = false; 55: 56: swr.execute(resourceResolver, r.getPath(), new String[] { 57: "Extract Meta Data", 58: "Create Thumbnail", 59: "Create Web Enabled Image", Cannot serve request to /etc/acs-tools/aem-fiddle/_jcr_content.run.html on this server
Steps to Reproduce
Follow the docs and try to run Example Code: Synthetic Workflow by Workflow Process Name.
I guess the API must have changed and an approach with SyntheticWorkflowModel
should be used in the example instead?