cancel
Showing results for 
Search instead for 
Did you mean: 

Assinging workflow not working in 3.2 R2

scottf
Champ on-the-rise
Champ on-the-rise
Hi,
I'm trying to assign a simple "review & approve" workflow for a document in Share.

The wizard seems to work fine, after I hit submit I get the message telling me the workflow has been assigned successfully.

However when the user I assigned the workflow to logs in there is no task.

On checking the log there are error messages relating to executing macros, specifically "resultJSON".

The stacktrace is below.

Has anyone else had this problem? or does it work well for others?

10:07:57,570 ERROR [freemarker.runtime]

Error executing macro: resultsJSON
required parameter: results is not specified.
The problematic instruction:
———-
==> macro resultsJSON [on line 1, column 1 in org/alfresco/slingshot/documentlibrary/action/action.lib.ftl]
in user-directive actionLib.resultsJSON [on line 2, column 1 in org/alfresco/slingshot/documentlibrary/action/assign-workflow.post.json.ftl]
———-

Java backtrace for programmers:
———-
freemarker.template.TemplateException: Error executing macro: resultsJSON
required parameter: results is not specified.
        at freemarker.core.Macro$Context.sanityCheck(Macro.java:181)
        at freemarker.core.Macro$Context.runMacro(Macro.java:161)
        at freemarker.core.Environment.visit(Environment.java:601)
        at freemarker.core.UnifiedCall.accept(UnifiedCall.java:106)
        at freemarker.core.Environment.visit(Environment.java:208)
        at freemarker.core.MixedContent.accept(MixedContent.java:92)
        at freemarker.core.Environment.visit(Environment.java:208)
        at freemarker.core.Environment.process(Environment.java:188)
        at freemarker.template.Template.process(Template.java:237)
        at org.alfresco.repo.template.FreeMarkerProcessor.process(FreeMarkerProcessor.java:202)
        at org.alfresco.web.scripts.AbstractWebScript.renderTemplate(AbstractWebScript.java:523)
        at org.alfresco.web.scripts.DeclarativeWebScript.renderFormatTemplate(DeclarativeWebScript.java:241)
        at org.alfresco.web.scripts.DeclarativeWebScript.execute(DeclarativeWebScript.java:147)
        at org.alfresco.repo.web.scripts.RepositoryContainer$2.execute(RepositoryContainer.java:372)
        at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:327)
        at org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecute(RepositoryContainer.java:422)
        at org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecuteAs(RepositoryContainer.java:439)
        at org.alfresco.repo.web.scripts.RepositoryContainer.executeScript(RepositoryContainer.java:303)
        at org.alfresco.web.scripts.AbstractRuntime.executeScript(AbstractRuntime.java:306)
        at org.alfresco.web.scripts.AbstractRuntime.executeScript(AbstractRuntime.java:183)
        at org.alfresco.web.scripts.servlet.WebScriptServlet.service(WebScriptServlet.java:122)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
        at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
        at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
        at java.lang.Thread.run(Thread.java:619)
10:07:57,574 DEBUG [org.alfresco.repo.web.scripts.RepositoryContainer] Transaction exception: required: 00050098 Wrapped Exception (with status template): 00050097 Error during processing of the tem
plate 'Error executing macro: resultsJSON
required parameter: results is not specified.'. Please contact your system administrator.
10:07:57,576 DEBUG [org.alfresco.repo.web.scripts.RepositoryContainer] Transaction status: 0
10:07:57,576 DEBUG [org.alfresco.repo.web.scripts.RepositoryContainer] Marking web script transaction for rollback
10:07:57,576 DEBUG [org.alfresco.repo.web.scripts.RepositoryContainer] End retry transaction block: required,readwrite
10:07:57,578 DEBUG [org.alfresco.repo.web.scripts.RepositoryContainer] Authentication reset: unauthenticated
10:07:57,578 ERROR [org.alfresco.web.scripts.AbstractRuntime] Exception from executeScript - redirecting to status template error: 00050098 Wrapped Exception (with status template): 00050097 Error d
uring processing of the template 'Error executing macro: resultsJSON
required parameter: results is not specified.'. Please contact your system administrator.
org.alfresco.web.scripts.WebScriptException: 00050098 Wrapped Exception (with status template): 00050097 Error during processing of the template 'Error executing macro: resultsJSON
required parameter: results is not specified.'. Please contact your system administrator.
        at org.alfresco.web.scripts.AbstractWebScript.createStatusException(AbstractWebScript.java:613)
        at org.alfresco.web.scripts.DeclarativeWebScript.execute(DeclarativeWebScript.java:165)
        at org.alfresco.repo.web.scripts.RepositoryContainer$2.execute(RepositoryContainer.java:372)
        at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:327)
        at org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecute(RepositoryContainer.java:422)
        at org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecuteAs(RepositoryContainer.java:439)
        at org.alfresco.repo.web.scripts.RepositoryContainer.executeScript(RepositoryContainer.java:303)
        at org.alfresco.web.scripts.AbstractRuntime.executeScript(AbstractRuntime.java:306)
        at org.alfresco.web.scripts.AbstractRuntime.executeScript(AbstractRuntime.java:183)
        at org.alfresco.web.scripts.servlet.WebScriptServlet.service(WebScriptServlet.java:122)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
        at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
        at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
        at java.lang.Thread.run(Thread.java:619)
Caused by: org.alfresco.service.cmr.repository.TemplateException: 00050097 Error during processing of the template 'Error executing macro: resultsJSON
required parameter: results is not specified.'. Please contact your system administrator.
        at org.alfresco.repo.template.FreeMarkerProcessor.process(FreeMarkerProcessor.java:206)
        at org.alfresco.web.scripts.AbstractWebScript.renderTemplate(AbstractWebScript.java:523)
        at org.alfresco.web.scripts.DeclarativeWebScript.renderFormatTemplate(DeclarativeWebScript.java:241)
        at org.alfresco.web.scripts.DeclarativeWebScript.execute(DeclarativeWebScript.java:147)
        … 21 more
Caused by: freemarker.template.TemplateException: Error executing macro: resultsJSON
required parameter: results is not specified.
        at freemarker.core.Macro$Context.sanityCheck(Macro.java:181)
        at freemarker.core.Macro$Context.runMacro(Macro.java:161)
        at freemarker.core.Environment.visit(Environment.java:601)
        at freemarker.core.UnifiedCall.accept(UnifiedCall.java:106)
        at freemarker.core.Environment.visit(Environment.java:208)
        at freemarker.core.MixedContent.accept(MixedContent.java:92)
        at freemarker.core.Environment.visit(Environment.java:208)
        at freemarker.core.Environment.process(Environment.java:188)
        at freemarker.template.Template.process(Template.java:237)
        at org.alfresco.repo.template.FreeMarkerProcessor.process(FreeMarkerProcessor.java:202)
        … 24 more
3 REPLIES 3

nsquare
Champ in-the-making
Champ in-the-making
Yes, there has been a bug opened for it.

https://issues.alfresco.com/jira/browse/ALFCOM-3796

But the earlier one is closed, with the reason - unable to reproduce. But you can.

A major drawback, I was hoping to sell this feature to my client.

-Taj

nsquare
Champ in-the-making
Champ in-the-making
Its actually interesting,

The task gets allocated, and shows up in the users dashboard.

The only thing that doesnt happen is the email. [And the exception in the logs].

-Thanks,
Taj

rakmun
Champ in-the-making
Champ in-the-making
I'm getting the same  error, yet  neither the workflow on  the dashboard  nor  the email notification, and with  the  adhoc task  instead of the r&r one.