cancel
Showing results for 
Search instead for 
Did you mean: 

<param> problem , please help

tabaktoni
Champ in-the-making
Champ in-the-making
i whant to chreate custom action , so you click on custom icon on some document and thet document is send to aproving workflow.

i do this steps:

1. Add custom button in …/alfresco-3.4.d/tomcat/share/classes/alfresco/extension/web-client-config-custom.xml

<alfresco-config>

   <config>
      <actions>
      
         <!– Yes . odobri dokument –>
         <action id="yes">
            <label>Yes</label>
            <image>/images/icons/yes.png</image>
            <script>/Company Home/Data Dictionary/Scripts/nn.js</script>
         </action>
                  
         <!– No . odbaci dokument –>
         <action id="no">
            <label>No</label>
            <image>/images/icons/no.png</image>
            <onclick>javascript:testActionFunction('#{actionContext.id}');</onclick>
         </action>
         
         <!– Send for verification –>
         <action id="sfv">
            <permissions>
                     <permission allow="true">CreateChildren</permission>
                 </permissions>
            <label-id>Send for verification</label-id>
            <image>/images/icons/sfv.png</image>
            <script>/Company Home/Data Dictionary/Scripts/wf12.js</script>
               <param name="noderef">#{actionContext.id}</param>
               <param name="pr2">prijenos</param>
         </action>
         
         <action-group id="document_browse">
         <action idref="yes" />
         <action idref="no" />
         <action idref="sfv" />
         </action-group>
         <action-group id="document_browse_menu">
         <action idref="yes" />
         <action idref="no" />
         <action idref="sfv" />
         </action-group>
         <action-group id="doc_details_actions">
         <action idref="yes" />
         <action idref="no" />
         <action idref="sfv" />
         </action-group>
         
      </actions>
   </config>
   
</alfresco-config>

2. I add file wf12.js in alfresco explorer in folder Data Dictionary/Scripts/wf12.js

function main()
{
    var nodeRef = args["noderef"];
    var node = search.findNode(nodeRef);
   
    logger.log("TONI: node = " + node);

    var workflow = actions.create("start-workflow");
   
    workflow.parameters.workflowName = "jbpm$wf:review";

    workflow.parameters["bpm:workflowDescription"] = node.name;

    workflow.parameters["bpm:groupAssignee"] = people.getGroup("GROUP_IT Manager");
   
    var futureDate = new Date();

    futureDate.setDate(futureDate.getDate() + 2);

    workflow.parameters["bpm:workflowDueDate"] = futureDate;

    workflow.execute(node);
}
main();

var goBack = "<script>location.href = '/alfresco/navigate/browse/workspace/SpacesStore/" + nodeParent.id + "';</script>";
goBack;


Problem is on line  workflow.execute(node);

Exception in Script
org.mozilla.javascript.WrappedException: Wrapped
prg.alfresco.service.cmr.workflow.WorkflowException:
06070001 Mandatory task properties have not been provided!
{http://www.alfresco.org/model/bpm/1.0}assignee(workspace//SpaceStore/afbe9919-558f-4b4d-8fd2-06215ed...


org.alfresco.error.AlfrescoRuntimeException: 06070004 Error during command servlet processing: 06070003 Failed to execute script 'workspace://SpacesStore/afbe9919-558f-4b4d-8fd2-06215ed7037b': 06070001 Mandatory task properties have not been provided! {http://www.alfresco.org/model/bpm/1.0}assignee
caused by:
org.alfresco.scripts.ScriptException: 06070003 Failed to execute script 'workspace://SpacesStore/afbe9919-558f-4b4d-8fd2-06215ed7037b': 06070001 Mandatory task properties have not been provided! {http://www.alfresco.org/model/bpm/1.0}assignee
caused by:
org.alfresco.service.cmr.workflow.WorkflowException: 06070001 Mandatory task properties have not been provided! {http://www.alfresco.org/model/bpm/1.0}assignee

Hide Details

org.alfresco.error.AlfrescoRuntimeException: 06070004 Error during command servlet processing: 06070003 Failed to execute script 'workspace://SpacesStore/afbe9919-558f-4b4d-8fd2-06215ed7037b': 06070001 Mandatory task properties have not been provided! {http://www.alfresco.org/model/bpm/1.0}assignee
at org.alfresco.web.app.servlet.CommandServlet.service(CommandServlet.java:191)
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.alfresco.repo.web.filter.beans.NullFilter.doFilter(NullFilter.java:68)
at sun.reflect.GeneratedMethodAccessor499.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.alfresco.repo.management.subsystems.ChainingSubsystemProxyFactory$1.invoke(ChainingSubsystemProxyFactory.java:116)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
at $Proxy236.doFilter(Unknown Source)
at org.alfresco.repo.web.filter.beans.BeanProxyFilter.doFilter(BeanProxyFilter.java:82)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.alfresco.web.app.servlet.GlobalLocalizationFilter.doFilter(GlobalLocalizationFilter.java:58)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
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:127)
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:298)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:852)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
at java.lang.Thread.run(Thread.java:680)
Caused by: org.alfresco.scripts.ScriptException: 06070003 Failed to execute script 'workspace://SpacesStore/afbe9919-558f-4b4d-8fd2-06215ed7037b': 06070001 Mandatory task properties have not been provided! {http://www.alfresco.org/model/bpm/1.0}assignee
at org.alfresco.repo.jscript.RhinoScriptProcessor.execute(RhinoScriptProcessor.java:244)
at org.alfresco.repo.processor.ScriptServiceImpl.executeScript(ScriptServiceImpl.java:195)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
at org.alfresco.repo.security.permissions.impl.AlwaysProceedMethodInterceptor.invoke(AlwaysProceedMethodInterceptor.java:34)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.alfresco.repo.security.permissions.impl.ExceptionTranslatorMethodInterceptor.invoke(ExceptionTranslatorMethodInterceptor.java:44)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.alfresco.repo.audit.AuditMethodInterceptor.proceedWithAudit(AuditMethodInterceptor.java:217)
at org.alfresco.repo.audit.AuditMethodInterceptor.proceed(AuditMethodInterceptor.java:184)
at org.alfresco.repo.audit.AuditMethodInterceptor.invoke(AuditMethodInterceptor.java:137)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:107)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
at $Proxy246.executeScript(Unknown Source)
at org.alfresco.web.app.servlet.command.ExecuteScriptCommand.execute(ExecuteScriptCommand.java:97)
at org.alfresco.web.app.servlet.command.ScriptCommandProcessor.process(ScriptCommandProcessor.java:151)
at org.alfresco.web.app.servlet.CommandServlet.service(CommandServlet.java:153)
… 27 more
Caused by: org.alfresco.service.cmr.workflow.WorkflowException: 06070001 Mandatory task properties have not been provided! {http://www.alfresco.org/model/bpm/1.0}assignee
at org.alfresco.repo.workflow.jbpm.JBPMEngine$26.doInJbpm(JBPMEngine.java:1816)
at org.springmodules.workflow.jbpm31.JbpmTemplate$1.doInHibernate(JbpmTemplate.java:87)
at org.springframework.orm.hibernate3.HibernateTemplate.doExecute(HibernateTemplate.java:406)
at org.springframework.orm.hibernate3.HibernateTemplate.execute(HibernateTemplate.java:339)
at org.springmodules.workflow.jbpm31.JbpmTemplate.execute(JbpmTemplate.java:80)
at org.alfresco.repo.workflow.jbpm.JBPMEngine.endTask(JBPMEngine.java:1798)
at org.alfresco.repo.workflow.WorkflowServiceImpl.endTask(WorkflowServiceImpl.java:648)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
at org.alfresco.repo.security.permissions.impl.AlwaysProceedMethodInterceptor.invoke(AlwaysProceedMethodInterceptor.java:34)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.alfresco.repo.security.permissions.impl.ExceptionTranslatorMethodInterceptor.invoke(ExceptionTranslatorMethodInterceptor.java:44)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.alfresco.repo.audit.AuditMethodInterceptor.proceed(AuditMethodInterceptor.java:160)
at org.alfresco.repo.audit.AuditMethodInterceptor.invoke(AuditMethodInterceptor.java:137)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:107)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
at $Proxy71.endTask(Unknown Source)
at org.alfresco.repo.workflow.StartWorkflowActionExecuter.executeImpl(StartWorkflowActionExecuter.java:160)
at org.alfresco.repo.action.executer.ActionExecuterAbstractBase.execute(ActionExecuterAbstractBase.java:133)
at org.alfresco.repo.action.ActionServiceImpl.directActionExecution(ActionServiceImpl.java:749)
at org.alfresco.repo.action.ActionServiceImpl.executeActionImpl(ActionServiceImpl.java:675)
at org.alfresco.repo.action.ActionServiceImpl.executeAction(ActionServiceImpl.java:540)
at org.alfresco.repo.action.ActionServiceImpl.executeAction(ActionServiceImpl.java:526)
at org.alfresco.repo.action.ActionServiceImpl.executeAction(ActionServiceImpl.java:758)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
at org.alfresco.repo.security.permissions.impl.AlwaysProceedMethodInterceptor.invoke(AlwaysProceedMethodInterceptor.java:34)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.alfresco.repo.security.permissions.impl.ExceptionTranslatorMethodInterceptor.invoke(ExceptionTranslatorMethodInterceptor.java:44)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.alfresco.repo.audit.AuditMethodInterceptor.proceed(AuditMethodInterceptor.java:160)
at org.alfresco.repo.audit.AuditMethodInterceptor.invoke(AuditMethodInterceptor.java:137)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:107)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
at $Proxy37.executeAction(Unknown Source)
at org.alfresco.repo.jscript.ScriptAction.executeImpl(ScriptAction.java:147)
at org.alfresco.repo.jscript.ScriptAction.execute(ScriptAction.java:136)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:155)
at org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:243)
at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:3237)
at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:2394)
at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:162)
at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:393)
at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:2834)
at org.mozilla.javascript.InterpretedFunction.exec(InterpretedFunction.java:173)
at org.alfresco.repo.jscript.RhinoScriptProcessor.executeScriptImpl(RhinoScriptProcessor.java:472)
at org.alfresco.repo.jscript.RhinoScriptProcessor.execute(RhinoScriptProcessor.java:240)
… 50 more


Please help
1 REPLY 1

tabaktoni
Champ in-the-making
Champ in-the-making
i found problem it is in  :

workflow.parameters["bpm:groupAssignee"] = people.getGroup("GROUP_IT Manager");

i don't know why please if anyone can help me because i need to send filo for aproval to people in thet group.

it work with:

    var person = people.getPerson("toni");
    workflow.parameters["bpm:assignee"] = person;

but i don't need thet.

thx
Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.