6 Replies Latest reply on Apr 18, 2007 12:15 PM by kukeltje

    Simple task-graph exception

    myarrow

      Hello jBPM community

      So, I've run the demos in the Getting Started links,
      and in particular, the demo that designs the task-graph
      for item return, with task assignments to ernie and grover
      via swimlanes.

      However, I would like to create a simple task-graph that
      simply assigns a variable, increments it, and then, decides
      if the resultant integer is even or odd and as a result performs
      one of two tasks, say, display "result is even" or display
      "result is odd".

      I attemped to create such a simple graph as
      the above. But I keep getting an exception, presumably
      because of my ignorance here.
      Questions:
      Is an assignment (to a person) always required for any task ?
      Aren't expressions (javascript-like) allowed ?
      Are these of the form "a=a+1" or "#{a=a+1}" ?

      Most likely, I'm doing several things wrong - omissions,
      errors in my understanding of items, etc.
      What pieces of the picture am I missing that are obvious
      to you all ?

      (processdefinition.xml, without decision, and exception included below)

      Maurice Yarrow
      SplashNote Systems

      <process-definition
      xmlns="urn:jbpm.org:jpdl-3.1" name="TestProj1">



      <start-state name="start">






      </start-state>
      <task-node name="task1">







      </task-node>
      <task-node name="task2">






      </task-node>
      <end-state name="end1"></end-state>
      </process-definition>

      javax.servlet.ServletException: Error calling action method of component with id taskform:transitionButton
      javax.faces.webapp.FacesServlet.service(FacesServlet.java:109)
      org.jbpm.webapp.filter.AuthenticationFilter.doFilter(AuthenticationFilter.java:56)
      org.jbpm.web.JbpmContextFilter.doFilter(JbpmContextFilter.java:83)
      org.jbpm.webapp.filter.LogFilter.doFilter(LogFilter.java:59)
      org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)


      root cause

      javax.faces.FacesException: Error calling action method of component with id taskform:transitionButton
      org.apache.myfaces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:74)
      javax.faces.component.UICommand.broadcast(UICommand.java:106)
      javax.faces.component.UIViewRoot._broadcastForPhase(UIViewRoot.java:90)
      javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:164)
      org.apache.myfaces.lifecycle.LifecycleImpl.invokeApplication(LifecycleImpl.java:271)
      org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:86)
      javax.faces.webapp.FacesServlet.service(FacesServlet.java:94)
      org.jbpm.webapp.filter.AuthenticationFilter.doFilter(AuthenticationFilter.java:56)
      org.jbpm.web.JbpmContextFilter.doFilter(JbpmContextFilter.java:83)
      org.jbpm.webapp.filter.LogFilter.doFilter(LogFilter.java:59)
      org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)


      note The full stack trace of the root cause is available in the Apache Tomcat/5.5 logs.

        • 1. Re: Simple task-graph exception
          myarrow

          Hello again, jBPM community:

          OK, my previous post totally failed to carry with it
          the processdefinition.xml (copy, paste, then,..., garbage,
          Oh, well)

          Am attempting again, but presume this will not work, either.

          How can I post to the list from a standard mailer (where I
          can stably copy-and-paste or attach)

          Maurice Yarrow
          SplashNote Systems

          • 2. Re: Simple task-graph exception
            myarrow

            <process-definition
            xmlns="urn:jbpm.org:jpdl-3.1" name="TestProj1">



            <start-state name="start">






            </start-state>
            <task-node name="task1">







            </task-node>
            <task-node name="task2">






            </task-node>
            <end-state name="end1"></end-state>
            </process-definition>

            • 3. Re: Simple task-graph exception
              myarrow

              Once again:

              Well, so I have to presume that the user-group e-mail
              system has Cross-Site-Scripting filtering and evasion,
              so that xml tags get ignored.

              That doesn't help me communicate the processdefinition.xml
              to you guys.

              Any ideas ? ("Disable HTML" checkbox was NOT checked)
              <process-definition
              xmlns="urn:jbpm.org:jpdl-3.1" name="TestProj1">



              <start-state name="start">






              </start-state>
              <task-node name="task1">







              </task-node>
              <task-node name="task2">






              </task-node>
              <end-state name="end1"></end-state>
              </process-definition>

              Maurice Yarrow
              Splashnote Systems

              Note: will include the xml as "Code", and see what happens



              • 4. Re: Simple task-graph exception
                kukeltje

                you wrongly included it as code... probably tags at the wrong places. Including it as code is however what you SHOULD do (and using preview also helps preventing wrong posts)

                • 5. Re: Simple task-graph exception

                  and how about an answer to the first question?
                  I am having exactly the same problem...
                  Thanks!

                  • 6. Re: Simple task-graph exception
                    kukeltje

                    what is the first question? So many half posts that I am not going to read...