Menu

GDP cannot find actions

Help
2006-09-13
2013-03-11
  • Pavel Kuzmenko

    Pavel Kuzmenko - 2006-09-13

    Good day!
    First, excuse me for my English.
    I have such a problem - when creating process diagramm and trying to set action class in dialog window "Choose a class from the list" a cannot find my implementation of my action handler. I write a simple class (just for testing) like

    class FileWriteAction implements ActionHandler{...}

    After I packed it in jar file and tried to put it in many places (where as I suggest GDP should be able to find it) like '\plugins', ‘plugins\org.jbpm.core_3.0.1\’, and even packed it into jar file into the same package where located action handlers found by gdp (org.jbpm.delegation.action in jbpm.core.jar), but nothing happened – he didn’t appeared.
    I’ve tried to redeclare my class as standard handlers were defined

    class FileWriteAction implements ActionHandler, Configurable{...}

    but still nothing happened.
    Of course, I can edit process definition manually but it would be better if it will work through GDP interface.

    Also, when I created process definition manually, imported it to par file and placed them to \server\lib I received a message that class 'org.jbpm.delegation.action.FileWriterAction' of element delegation cannot be found

    Please, tell me where I made mistake or may be it is a bug...

    Kuzz.

     
    • Martin Gaido

      Martin Gaido - 2006-09-13

      Hi Kuzz,

      I made a few of action handlers so far and I followed these steps:

      1 - I created the action handler inside my custom jar file.

      2 - I manually refered to that action handler in GPD in source option (related to a proper event type). For instance:

      <state name="approval task">
      <assignment assignment="required" swimlane="users">
      </assignment>
      <action event-type="state-enter"><delegation class="yourpackage.youraction"></delegation></action>
      <transition name="tr1" to="next task"></transition>
      </state>

      3 - I allocated the jar in \server\default\lib folder (I restarted the server after that)

      4 - On web interface I deployed my par file. (after exporting from GPD)

      That's all. It should work. I hope this was useful for you.

      Regards,

      Martin.-

       
    • Pavel Kuzmenko

      Pavel Kuzmenko - 2006-09-14

      Hi, Martin.
      Yes, I did it in the same way.
      But I decide to follow this steps again by your advise. So, it still don't work...

      I'm continuing to use this sample action handler compiled in a package 'mypack' located in custom jar file FWA.jar. I've put it in \server\default\lib and restarted the server.

      I refered to it in such way:

      <state name="Make Descation">
      <assignment assignment="required" swimlane="staff"></assignment>
      <action event-type="state-enter">
      <delegation class="mypack.FileWriterAction">
      </delegation>
      </action>
      <transition name="tr1" to="decision1">
      </transition>
      </state>

      I exported it to par file from GPD and tried to deploy it from web interface.

      But the error is still presented. If I'll translate it into English it would be something like "Class mypack.FileWriterAction of element delegation cannot be found in process definition".

      May it be the reason of jdk/jre version? I'm using 1.5.0, but may be I need higher versions? As far as I know the last one now is 1.5.0_07?

      Thanks,

      Kuzz.

       
    • Martin Gaido

      Martin Gaido - 2006-09-14

      Hi Kuzz,

      Very strange. You must point to a JDK version. It works from 1.4 towards.

      What's the server log?

      Regards,

      Martin.-

       
    • Pavel Kuzmenko

      Pavel Kuzmenko - 2006-09-15

      Hi, Martin,

      In the server log there is retrieving neccessary files from db, and the last line is

      2006-09-15 09:55:46,190 DEBUG [org.jbpm.par.ArchiveClassLoader] searching class 'mypack.FileWriterAction' in process archive

      I tried to put my action handler into process archive but nothing changed so I removed it from the archive.

      Or may be I should post a whole server log from start to this message?

      And, Opera gives me a description of this error in English, exactly it is "Process definition delegation class mypack.FileWriterAction can not be found".

      What's interesting - in the boot log I found line
      09:59:34,459 DEBUG [SARDeployer] deployed classes for file:/D:/Langs/Java/RunaWFE/runawfe-2.0RC5-bin/server/default/lib/1.jar
      My action handler packed into it. And server wrote that he deployed it.

      So, it seems to me very, very strange :( May be I made some small fool error and simply don't know where it is located?

      Could you help me, please - I'll mail you this two small files 1.jar & 1.par for you to try it on yours server?

      Thanks a lot,

      Pavel K.

       
    • Martin Gaido

      Martin Gaido - 2006-09-15

      Hi Kuss,

      I've send you a message via SF so that you can send me the files to my email.

      Regards,

      Martin.-

       
    • Pavel Kuzmenko

      Pavel Kuzmenko - 2006-09-15

      Hi, Martin,

      I've just send you reply mail with this files/

      Thanks,

      Pavel K.

       

Log in to post a comment.