2 Replies Latest reply on Sep 12, 2007 9:09 AM by razieh

    transitions

    orochimaru19860000

      Hi all.
      I'm trying to add in a task node two transitions to two other diffrent task node.
      the problem is that during execution one transition is ignored, I mean I cilck on the button but it doesn't transfer to the node I want.

      the question is: is it possible to make this in jbpm or not.
      here is my code:

      <task-node name="Controle">
       <task name="controle"></task>
       <transition name="restart treatment" to="treatment"></transition>
       <transition name="validate treatment" to="Satisfaction"></transition>
       </task-node>
      

      thanks in advance

        • 1. Re: transitions
          kukeltje

          Search this FINE, FINE forum, or the FINE FINE Jira.

          s/INE/***/g

          Known issue in the 3.2.1 webapp and FIXED in the CVS and the upcoming 3.2.2

          • 2. Re: transitions
            razieh

            public void cancel(long id) {
            User user = (User) em.createQuery("select u from User u where u.id=" + id).getSingleResult();
            TaskInstance ti = taskInfo.findTaskInstance(taskId);
            ti.start();
            this.dossierAssignee = user;
            ti.end("treatment");
            }

            public void approve(long id) {
            User user = (User) em.createQuery("select u from User u where u.id=" + id).getSingleResult();
            TaskInstance ti = taskInfo.findTaskInstance(taskId);
            ti.start();
            this.dossierAssignee = user;
            ti.end("Satisfaction");
            }
            i hope it can help you.