Removing workflow from system.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-18-2009 03:33 AM
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
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
Labels:
- Labels:
-
Archive
5 REPLIES 5
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-18-2009 04:33 AM
How did you "remove the workflow"? It will not be sufficient to just delete the workflow definition files.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-18-2009 07:41 AM
How did you "remove the workflow"? It will not be sufficient to just delete the workflow definition files.
Yes, all I did was removing workflow definition files.
What else would be necessary?
Is there something I have to remove from database?
Workflow administration console gives the same exception.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-01-2009 04:37 PM
You could start deleting namespace entries in the database. But that's not recommended.
Thanks
😕
Thanks
😕
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-02-2009 01:12 AM
For removing workflow from the alfresco u need to login with "admin" credential
then open page
http://localhost:8080/alfresco/faces/jsp/admin/workflow-console.jsp
now u can see all the workflow by executing command
show definitions all
and remove workflow by executing command
undeploy definition <workflow definition name>
try it
then open page
http://localhost:8080/alfresco/faces/jsp/admin/workflow-console.jsp
now u can see all the workflow by executing command
show definitions all
and remove workflow by executing command
undeploy definition <workflow definition name>
try it
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-15-2013 05:26 AM
Hi all
show definitions all – showing syntax error in workflow console
can you pls suggest to remove it manually
I m using alfresco 4.2 community
show definitions all – showing syntax error in workflow console
can you pls suggest to remove it manually
I m using alfresco 4.2 community
