cancel
Showing results for 
Search instead for 
Did you mean: 

Error on deploying the Activiti Process.

pavankumar
Champ in-the-making
Champ in-the-making
Hi All,

I created a Activiti Project and now i Zip that project, when i am uploading the project from Activiti Explorer i get the below error.
I couldn't figure it out, could you please help me in this.

I Have uploaded my BPMN process xml file for reference and below are the java service tasks

======================================================================
/**
*
*/
package com.spark.activit.tasks;

import org.activiti.engine.delegate.DelegateExecution;
import org.activiti.engine.delegate.JavaDelegate;

/**
* @author Sony
*
*/
public class RejectionTask implements JavaDelegate{

   @Override
   public void execute(DelegateExecution delegateExecution) throws Exception {

      System.out.println("—————– Approved ————-");
   }

}
==========================================================================
/**
*
*/
package com.spark.activit.tasks;

import org.activiti.engine.delegate.DelegateExecution;
import org.activiti.engine.delegate.JavaDelegate;

/**
* @author Sony
*
*/
public class ApprovalTask implements JavaDelegate{

   @Override
   public void execute(DelegateExecution delegateExecution) throws Exception {

      System.out.println("—————– Approved ————-");
   }

}
====================================================================================
Here is the error i come up with

Error : org.activiti.engine.ActivitiException: The deployment contains process definitions with the same key (process id atrribute), this is not allowed

Thanks
Pavan Kumar
1 REPLY 1

martin_grofcik
Confirmed Champ
Confirmed Champ
Hi Pavan.

Error : org.activiti.engine.ActivitiException: The deployment contains process definitions with the same key (process id atrribute), this is not allowed
Error says that your deployment contains process definitions with the same key.
Could you create jUnit test for it?
http://forums.activiti.org/content/sticky-how-write-unit-test

Regards
Martin