AnsweredAssumed Answered

I can't deploy my process

Question asked by activititest on May 16, 2016
Latest reply on May 17, 2016 by activititest
What's up guys?
I need your help for my first try to deploy a process. I try to implement the example from activiti user guide.I run my code with Eclipse IDE and there is no errors. Despite that, in activiti explorer i can't see my process. What is happening??
My code is :

public static void main(String[] args) {
      // TODO Auto-generated method stub
      ProcessEngine processEngine = null;
      ProcessEngineConfiguration processConfig= null;
                //Create Activiti process engine
      processConfig =  ProcessEngineConfiguration

                processEngine = processConfig.buildProcessEngine();
      //Get Activiti services
      RepositoryService repositoryService = processEngine.getRepositoryService();
      RuntimeService runtimeService = processEngine.getRuntimeService();
      //Deploy the process definition

           //Start a process instance

and for my process the xml file is:

<?xml version="1.0" encoding="UTF-8"?>

<definitions id="definitions"

   <process id="financialReport" name="Monthly financial report reminder process">

     <startEvent id="theStart" />

     <sequenceFlow id='flow1' sourceRef='theStart' targetRef='writeReportTask' />

     <userTask id="writeReportTask" name="Write monthly financial report" >
         Write monthly financial report for publication to shareholders.

     <sequenceFlow id='flow2' sourceRef='writeReportTask' targetRef='verifyReportTask' />

     <userTask id="verifyReportTask" name="Verify monthly financial report" >
         Verify monthly financial report composed by the accountancy department.
         This financial report is going to be sent to all the company shareholders.

     <sequenceFlow id='flow3' sourceRef='verifyReportTask' targetRef='theEnd' />

     <endEvent id="theEnd" />