AnsweredAssumed Answered

Problem with ParameterDefinition

Question asked by jesty on Jun 29, 2008
Latest reply on Apr 1, 2009 by burriad
Hi folks,
I've created my custom action and it's works, but now I wont add a parameter.
I have add it to the list:
protected void addParameterDefinitions(List<ParameterDefinition> paramList) {
       paramList.add(new ParameterDefinitionImpl(PARAM_STOP_FOLDER, DataTypeDefinition.NODE_REF, true, getParamDisplayLabel(PARAM_STOP_FOLDER)));
   }

And I have denined the action in spring context file, but when I add the action and I click button "" the action is added, but I can't set the parameter and when I execute this action I have this exception:

org.alfresco.service.cmr.rule.RuleServiceException: A value for the mandatory parameter stop-folder has not been set on the rule item copy-content-with-struct-action
   at org.alfresco.repo.action.ParameterizedItemAbstractBase.checkMandatoryProperties(ParameterizedItemAbstractBase.java:164)
   at org.alfresco.repo.action.executer.ActionExecuterAbstractBase.execute(ActionExecuterAbstractBase.java:117)


Where is my error??? What I forget?

Thanks :D

Outcomes