8 Replies Latest reply on Nov 1, 2005 10:59 AM by tobysaville

    Why is this invalid?

    dharraj




      value





      The jBPM GPD allows me to create this!

      Raj

        • 1. Re: Why is this invalid?
          dharraj

          What happen to rest of my message....


          Here it is again.




          val




          • 2. Re: Why is this invalid?
            kukeltje

            use the code tags to display code or xml

            • 3. Re: Why is this invalid?
              kukeltje

              there is no close tag on tha param

              • 4. Re: Why is this invalid?
                dharraj

                 

                <state name="first">
                 <event type="node-enter">
                 <action name="action1" class="jpl.mipl.pgs.jbpm.action.SetUpEnv">
                 <UPFFileName>somevalue</UPFFileName>
                 </action>
                 </event>
                 <transition name="to_end" to="end">
                 <action name="action" class="com.sample.action.MessageActionHandler">
                 <message>About to finish!</message>
                 </action>
                 </transition>
                 </state>
                


                • 5. Re: Why is this invalid?
                  kukeltje

                  2 things. The code you post now is different from the code you posted earlier:

                   <node name="B1N1">
                   <event type="node-enter">
                   <action name="action1" class="myclass">
                   <param>val
                   </action>
                   </event>
                   <transition name="tr1" to="B1N2"></transition>
                   </node>
                  


                  Second. Why do you think the recent code you posted is invalid?

                  • 6. Re: Why is this invalid?
                    dharraj

                    Sorry for posting two different set of code. It is invalid because I get the following exception. The GUI allows this, however.

                    [[ERROR] process definition line 27: cvc-complex-type.2.4.a: Inv
                    alid content was found starting with element 'transition'. One of '{"http://jbpm.org/3/jpdl":event, "http
                    ://jbpm.org/3/jpdl":timer, "http://jbpm.org/3/jpdl":exception-handler}' is expected.]
                    org.jbpm.jpdl.JpdlException: [[ERROR] process definition line 27: cvc-complex-type.2.4.a: Invalid content
                     was found starting with element 'transition'. One of '{"http://jbpm.org/3/jpdl":event, "http://jbpm.org/
                    3/jpdl":timer, "http://jbpm.org/3/jpdl":exception-handler}' is expected.]
                    


                    • 7. Re: Why is this invalid?
                      koen.aers

                      We use the code completion feature of the WTP XML editor under the hood of the GPD. There are some known issues with it, but I have seen they are working on fixing those. I guess for the moment, we'll just have to bear with the inaccurate completion.

                      Regards,
                      Koen

                      • 8. Re: Why is this invalid?
                        tobysaville

                        does changing the order of the transition and event tags fix it?