Ho creato un workflow avanzato con una custom property "nota" chiamata "my:nota" di tipo string. Come faccio a visualizzarla con la template Freemarker??Considerando che node è il nome della variabile nello scope del template FreeMarker:
${node.properties["my:nota"]}
<td>${node.name}</td>
<td>${node.properties.created?datetime}</td>
<td>${node.properties.modified?datetime}</td>
<td>${node.properties.description}</td>
<td>${node.content}</td>
<td>${node.name}</td>
<td>${node.properties.created?datetime}</td>
<td>${node.properties.modified?datetime}</td>
<td>${node.properties.["custom:customproperty"]}</td>
<td>${node.content}</td>
freemarker.core.ParseException - Encountered "[" at line 12, column 23 in org/alfresco/demo/wslib/simpleui/DocumentList.get.html.ftl. Was expecting one of: "false" … "true" … <LESS_THAN> … <LESS_THAN_EQUALS> … <ESCAPED_GT> … <ESCAPED_GTE> … "*" … "**" … "in" … "as" … "using" … <ID> …
freemarker.core.FMParser.generateParseException(FMParser.java:4697)
freemarker.core.FMParser.jj_consume_token(FMParser.java:4568)
freemarker.core.FMParser.DotVariable(FMParser.java:867)
freemarker.core.FMParser.AddSubExpression(FMParser.java:717)
freemarker.core.FMParser.PrimaryExpression(FMParser.java:273)
freemarker.core.FMParser.UnaryExpression(FMParser.java:319)
freemarker.core.FMParser.MultiplicativeExpression(FMParser.java:435)
freemarker.core.FMParser.AdditiveExpression(FMParser.java:385)
freemarker.core.FMParser.RangeExpression(FMParser.java:556)
freemarker.core.FMParser.RelationalExpression(FMParser.java:511)
freemarker.core.FMParser.EqualityExpression(FMParser.java:476)
freemarker.core.FMParser.AndExpression(FMParser.java:585)
freemarker.core.FMParser.OrExpression(FMParser.java:608)
freemarker.core.FMParser.Expression(FMParser.java:221)
freemarker.core.FMParser.StringOutput(FMParser.java:1061)
freemarker.core.FMParser.Content(FMParser.java:2575)
freemarker.core.FMParser.OptionalBlock(FMParser.java:2786)
freemarker.core.FMParser.List(FMParser.java:1257)
freemarker.core.FMParser.FreemarkerDirective(FMParser.java:2375)
freemarker.core.FMParser.Content(FMParser.java:2618)
freemarker.core.FMParser.OptionalBlock(FMParser.java:2786)
freemarker.core.FMParser.Root(FMParser.java:2958)
freemarker.template.Template.<init>(Template.java:149)
freemarker.cache.TemplateCache.loadTemplate(TemplateCache.java:448)
freemarker.cache.TemplateCache.getTemplate(TemplateCache.java:361)
freemarker.cache.TemplateCache.getTemplate(TemplateCache.java:235)
freemarker.template.Configuration.getTemplate(Configuration.java:487)
freemarker.template.Configuration.getTemplate(Configuration.java:452)
org.alfresco.repo.web.scripts.RepositoryTemplateProcessor.hasTemplate(RepositoryTemplateProcessor.java:145)
org.springframework.extensions.webscripts.TemplateProcessorRegistry.findValidTemplatePath(TemplateProcessorRegistry.java:214)
org.springframework.extensions.webscripts.AbstractWebScript.renderTemplate(AbstractWebScript.java:585)
org.springframework.extensions.webscripts.DeclarativeWebScript.renderFormatTemplate(DeclarativeWebScript.java:267)
org.springframework.extensions.webscripts.DeclarativeWebScript.execute(DeclarativeWebScript.java:147)
org.alfresco.repo.web.scripts.RepositoryContainer$2.execute(RepositoryContainer.java:383)
org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:381)
org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecute(RepositoryContainer.java:436)
org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecuteAs(RepositoryContainer.java:466)
org.alfresco.repo.web.scripts.RepositoryContainer.executeScript(RepositoryContainer.java:304)
org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:352)
org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:189)
org.springframework.extensions.webscripts.servlet.WebScriptServlet.service(WebScriptServlet.java:118)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
org.alfresco.web.app.servlet.GlobalLocalizationFilter.doFilter(GlobalLocalizationFilter.java:58)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:861)
org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:579)
org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1584)
java.lang.Thread.run(Thread.java:662)
Archive content from product discussions in Italian.
This group is now closed and content is read-only.
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.