AnsweredAssumed Answered

Make property strings appear in wizards

Question asked by swithun on Jun 25, 2010
Latest reply on Jul 7, 2010 by swithun
I'm developing a custom action that will be packaged as an AMP. I imagine that most of the time, this action will be run an automated rule, and not as a one-off action via a wizard. But it can be run via the Run action wizard, and it works.

The trouble is that I can't figure out how to get property strings (title, description, summary etc.) to be used in the wizard. Having picked the action from the menu, and clicked the Set Values and Add button, the summary box is empty. If I use the Next button instead of the Finish button, then the lack of strings results in an error, although using Finish works fine, as does running the action from a rule.

This is my directory structure:


.
|– build
|   |– classes
|   |   `– uk
|   |       `– ac
|   |           `– st_andrews
|   |               `– repo
|   |                   `– action
|   |                       `– executer
|   |                           `– AntivirusActionExecuter.class
|   |– dist
|   |   `– antivirus-action.amp
|   `– lib
|       `– antivirus-action.jar
|– build.xml
|– config
|   `– alfresco
|       `– module
|           `– antivirus-action
|               |– context
|               |   |– antivirus-action.properties
|               |   `– antivirus-action.xml
|               |– module-context.xml
|               |– module.properties
|               `– template
|                   `– virus_found.ftl
`– source
    `– java
        `– uk
            `– ac
                `– st_andrews
                    `– repo
                        `– action
                            `– executer
                                `– AntivirusActionExecuter.java

This is my module.properties file:

# MyModule module properties
module.id=antivirus-action
module.version=1.0
module.title=Antivirus Action
module.description=Integrates antivirus checking as an action in Alfresco

and this is my antivirus-action.properties file:

antivirus-action.title=Check files using antivirus software
antivirus-action.description=This will check file for viruses
antivirus-action.summary=This will check file for viruses
antivirus.exe=/usr/bin/clamdscan

I would like the last property to be picked up by the antivirus-action.xml bean file.

Can anyone see what I could be doing wrong? Are any of the files in the wrong location, or is there something wrong with my naming of things?

Thanks.

Outcomes