2 Replies Latest reply on Mar 29, 2006 1:02 PM by pedrosacosta

    deploy processdefinition

    pedrosacosta

      When i try to deploy my process definition via eclipse, my process definition is deployed, except the action.

      This is my process definition:

      <?xml version="1.0" encoding="UTF-8"?>
      <process-definition name="Avarias">
       <start-state name="start">
       <transition name="OK" to="Viatura imobilizada?"></transition>
       </start-state>
       <end-state name="end"></end-state>
       <state name="Viatura imobilizada?">
       <transition name="OK" to="Requer assistência no local?"></transition>
       <transition name="NOK" to="Fechar ocorrencia?"></transition>
       </state>
       <state name="Requer assistência no local?">
       <transition name="NOK" to="Fechar ocorrencia?"></transition>
       <transition name="OK" to="Fechar ocorrencia?">
       <action name="sendMail" action="com.link.bem.jbpm.action.SendMailHandler"></action>
       </transition>
       </state>
       <state name="Fechar ocorrencia?">
       <transition name="OK" to="end">
       <action name="closeOccurrence" action="com.link.bem.jbpm.action.CloseOccurrenceHandler"></action>
       </transition>
       </state>
      </process-definition>
      


      When i deploy the processdefinition, the actions name are saved in the action table of jbpm database, but the actions class aren't saved in the jbpm database.

      I don't understand why. What's wrong?

        • 1. Re: deploy processdefinition
          kukeltje

          check the following:
          - are the actions in the same project?
          - did you make a typo (case sensitivity)
          - are the classes in a source directory?
          - are they automatically build (you need a .class file)

          Ronald

          • 2. Re: deploy processdefinition
            pedrosacosta

            Thanks for the quick answer, but here is the structure of my project


            inside sources directory i have this:

            com.link.bem.jbpm.action.SendMailHandler.java
            com.link.bem.jbpm.action.CloseOccurrenceHandler.java

            com/link/bem/jbpm/process/Avarias.par/processdefinition.xml


            The java file appears in the form class, in the bin directory.

            inside bin directory i have this:

            com.link.bem.jbpm.action.SendMailHandler.class
            com.link.bem.jbpm.action.CloseOccurrenceHandler.class


            Is this right?

            I don't know if this struture is in the right form. But, i would like to maintain this structure.

            Thanks
            Pedro