AnsweredAssumed Answered

upload and workflow submit

Question asked by robain on Jan 8, 2009
Latest reply on Jan 9, 2009 by robain
Hi
I want to be able to upload a document and automatically submit it for workflow within the same webscript. Is that possible? I get the following error when I try it. Anyone has any idea if this is possible.

thanks.

48:40,106 ERROR [graph.def.GraphElement] action threw exception: Failed to execute supplied script: Failed to execute supplied script: Wrapped java.lang.Null
nterException (AlfrescoScript#1)
.alfresco.service.cmr.repository.ScriptException: Failed to execute supplied script: Failed to execute supplied script: Wrapped java.lang.NullPointerExceptio
AlfrescoScript#1)
     at org.alfresco.repo.processor.ScriptServiceImpl.executeScriptString(ScriptServiceImpl.java:283)
     at org.alfresco.repo.processor.ScriptServiceImpl.executeScriptString(ScriptServiceImpl.java:257)
     at sun.reflect.GeneratedMethodAccessor773.invoke(Unknown Source)
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
     at java.lang.reflect.Method.invoke(Method.java:585)
     at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:281)
     at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:187)
     at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:154)
     at org.alfresco.repo.security.permissions.impl.AlwaysProceedMethodInterceptor.invoke(AlwaysProceedMethodInterceptor.java:40)
     at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:176)
     at org.alfresco.repo.security.permissions.impl.ExceptionTranslatorMethodInterceptor.invoke(ExceptionTranslatorMethodInterceptor.java:49)
     at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:176)
     at org.alfresco.repo.audit.AuditComponentImpl.audit(AuditComponentImpl.java:245)
     at org.alfresco.repo.audit.AuditMethodInterceptor.invoke(AuditMethodInterceptor.java:69)
     at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:176)
     at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:107)
     at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:176)
     at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:210)
     at $Proxy47.executeScriptString(Unknown Source)
     at org.alfresco.repo.workflow.jbpm.AlfrescoJavaScript.executeScript(AlfrescoJavaScript.java:159)
     at org.alfresco.repo.workflow.jbpm.AlfrescoJavaScript.execute(AlfrescoJavaScript.java:133)
     at org.jbpm.graph.def.Action.execute(Action.java:122)

Outcomes