6 Replies Latest reply on Oct 22, 2009 5:21 PM by Ronald van Kuijk

    how to programatically list actitities from one activity

    Walter Villafañe Newbie

      === Environment ==============================
      - jBPM Version : jbpm 4.1 on WinXP
      - Database : Mysql 5.1
      - JDK : 1.5.0.11
      - Container : Tomcat 6.0.20
      - Configuration : importing files from the jbpm.jar
      - Libraries : I had to replace el-jar from tomcat with juel* from jbpm
      === Process ==================================
      < process name="StateSequence" xmlns="http://jbpm.org/4.0/jpdl" >

      < start g="16,18,48,48" >
      < transition to="a" / >
      < /start >

      < state name="a" g="96,16,75,52" >
      < transition to="b" / >
      < transition to="c" / >
      < /state >

      < state name="b" g="203,16,73,52" >
      < transition to="c" / >
      < /state >

      < end name="c" g="308,16,76,52" / >

      < /process >

      === Problem description =========================
      How do I do to know programatically that state "a" has to two transitions: "b" and "c"?

      because :
      Execution.getExecutions(): Only lists active executions
      Execution.findActiveActivityNames(): Only lists active activities

      I need something like:
      Execution.listActivities(): List activities of current activity so I'd get transtion "b" and "c".

      Thanks in advance.