AnsweredAssumed Answered

Removing workflow from system.

Question asked by andrisr on Nov 18, 2009
Latest reply on Mar 15, 2013 by himanshuk4u
Hi!
In a fresh Alfresco 3.2r instance I added an advanced workflow (which is used in another instance successfully).

Started up Alfresco and verified, that wokflow is available after selecting "Start Advanced Workflow" (there were two workflows, one of which was mine).
Without starting it, I shut down Alfresco and removed the workflow.
Then I started Alfresco again. Now, after selecting "Start Advanced Workflow",
I got an exception
 
  Namespace prefix rwsfr is not mapped to a namespace URI

and after that a message saying that there are no
workflows available. Prefix rwsfr is used by my workflow.
Adding a dummy model file with this prefix defined didn`t help. :)

I intend to try and change JBPMEngine.java to handle this situation.
But before that I wanted to ask whether there is something obvious, that I am missing?

Thanks!

Here is the exception.
Caused by: org.alfresco.service.namespace.NamespaceException: Namespace prefix rwsfr is not mapped to a namespace URI
at org.alfresco.service.namespace.QName.createQName(QName.java:105)
at org.alfresco.service.namespace.QName.createQName(QName.java:127)
at org.alfresco.repo.workflow.jbpm.JBPMEngine.getTaskDefinition(JBPMEngine.java:1873)
at org.alfresco.repo.workflow.jbpm.JBPMEngine.createWorkflowTaskDefinition(JBPMEngine.java:2890)
at org.alfresco.repo.workflow.jbpm.JBPMEngine.createWorkflowDefinition(JBPMEngine.java:2828)
at org.alfresco.repo.workflow.jbpm.JBPMEngine$4.doInJbpm(JBPMEngine.java:419)
at org.springmodules.workflow.jbpm31.JbpmTemplate$1.doInHibernate(JbpmTemplate.java:87)
at org.springframework.orm.hibernate3.HibernateTemplate.execute(HibernateTemplate.java:372)
at org.springframework.orm.hibernate3.HibernateTemplate.execute(HibernateTemplate.java:338)
at org.springmodules.workflow.jbpm31.JbpmTemplate.execute(JbpmTemplate.java:80)
at org.alfresco.repo.workflow.jbpm.JBPMEngine.getDefinitions(JBPMEngine.java:397)
at org.alfresco.repo.workflow.WorkflowServiceImpl.getDefinitions(WorkflowServiceImpl.java:248)
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:304)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
at org.alfresco.repo.security.permissions.impl.AlwaysProceedMethodInterceptor.invoke(AlwaysProceedMethodInterceptor.java:40)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at org.alfresco.repo.security.permissions.impl.ExceptionTranslatorMethodInterceptor.invoke(ExceptionTranslatorMethodInterceptor.java:49)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at org.alfresco.repo.audit.AuditMethodInterceptor.proceedWithAudit(AuditMethodInterceptor.java:237)
at org.alfresco.repo.audit.AuditMethodInterceptor.proceed(AuditMethodInterceptor.java:204)
at org.alfresco.repo.audit.AuditMethodInterceptor.invoke(AuditMethodInterceptor.java:152)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
at $Proxy46.getDefinitions(Unknown Source)
at org.alfresco.web.bean.workflow.StartWorkflowWizard.initializeWorkflows(StartWorkflowWizard.java:570)
at org.alfresco.web.bean.workflow.StartWorkflowWizard.getStartableWorkflows(StartWorkflowWizard.java:605)
at org.alfresco.web.bean.workflow.StartWorkflowWizard.getHasStartableWorkflows(StartWorkflowWizard.java:552)
… 79 more

Outcomes