Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8166271
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T19:48:18+00:00 2026-06-06T19:48:18+00:00

I have a question for Alfresco Community v4.0.0 I create content rule, select execute

  • 0

I have a question for Alfresco Community v4.0.0

  • I create content rule,
  • select execute script,
  • and in the script call processTemplate(ScriptNode template, array args)

How do I get an array into template? Args contains only key – value (String).

Thanks in advance for any advice or help

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T19:48:20+00:00Added an answer on June 6, 2026 at 7:48 pm

    I think you’re getting something like “Expected extended hash. args.array evaluated instead to freemarker.template.SimpleScalar”, am I right?

    If so, I’m afraid you can not get this working with scripts called from content rules, because there are no wrappers for complex datatypes, so this is the reason only String (and other scalars) is accepted.

    You have two choices:

    1. Alter alfresco code, which wraps objects and sends them into processTemplate() and build whole system (maybe more info on this you can find in my older blogpost)

    2. Put an array into processTemplate() and in template read it like a string and then parse it – arrays looks like [val1,val2,val3], so refer to freemarker documentation for string functions and do something like this (ugly, but fast solution):

      <#list args.array?split(",") as value>
          hereRemoveFirstAndLastSquareBracketFrom(${value});
      </#list>
      

    Edit: If anyone interested, I just raised a bug in Alfresco JIRA

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have question i.e how can i select a previous div CODE:- if($i >
I have question here, i design multiview application using view base template. Page 1
I have question regarding macros. How could I cast through macro a template class
I have question. I create socket , connect , send bytes , all is
I have question, how write function to select all chceckbox on form, when all
If you have ever worked on alfresco, you must know the web script layer
I have question how to create a performant swing component. The component should draw
So i have question: SELECT worker_ID as widp, DAYS, MAX(ID_WERSJI) max , funcion1 as
hello I have question on nested select in mysql. I want a working query
I have question about parsing in Html helper : I have sth like: @foreach

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.