8 Replies Latest reply on Mar 12, 2007 9:50 AM by pacolinus

    Example uses superstate

    remider

      I'm studying about creating process definition.
      I don't know how to use superstate.
      Can you help me ?

      Thanks!

        • 1. Re: Example uses superstate
          hosierdm
          • 2. Re: Example uses superstate
            kukeltje

            hmmm.... funny, that document is behind the second result google gave me when using the words "superstate jbpm docs" in the query. Would that be a coincidence David?

            • 3. Re: Example uses superstate
              hosierdm

              Well, I know that the answers to most questions asked in here are in that guide, so I have it bookmarked. When I see an easy question like this, I open the guide from a bookmark, do a FIND on the topic, and voila....almost always comes up in the Table of Contents of the User Guide. Why waste my time with Google when I already know the User Guide answers most questions? :) Anyone who is serious about working with jBPM should bookmark the User Guide in their browser from day one. You might add a sticky to the top of the forum that says "READ USER GUIDE FIRST". If someone asks a question that is easily answered by the User Guide, that user is banned for life from asking questions! Just kidding....kind of. :p

              I was also thinking that a sticky that makes it clear that the webapp is NOT part of jBPM in the sense that it's the only way to interact with jBPM would be nice. I've seen way too many questions lately that seem to indicate that people have this misconception. Basically they have the notion that if the webapp does not support feature XYZ, they are screwed and don't know what to do.

              • 4. Re: Example uses superstate
                kukeltje

                The FAQ in the getting started should/could be extende with this one, maybe the FAQ should be separate. I'll put it on my list

                • 5. Re: Example uses superstate
                  dhartford

                  http://docs.jboss.org/jbpm/v3/userguide/processmodelling.html#superstates
                  http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3972282#3972282

                  The academic version of

                   <super-state name="phase one">
                   <state name="invite murphy"/>
                   </super-state>
                  


                  needs to be flushed out show a real-world example. Is the "invite murphy" state a non-start/non-stop state just hanging in the same processdefinition? Within the same processdefinithin within the start/stop flow process? Is it in a different processdefinintion file...if so, how do you point to it? Does the superstate have its own start/stop mechanics before transisitioning?



                  • 6. Re: Example uses superstate
                    dhartford

                    And maybe also a comparison/contrast with Process Composition/sub-process to superstates. It may be that people start using one based on poor/incorrect assumptions that could be corrected with proper documentation.

                    • 7. Re: Example uses superstate
                      koen.aers

                      A superstate is a simple grouping of nodes which provides:
                      - semantic meaning because analists can group together nodes that belong together logically as in a particular 'phase' of a process
                      - syntactic meaning because eventhandlers for all the nodes within the superstate can be defined on the level of the superstate (e.g. a node-enter event handler defined on the level of the superstate will be executed when entering every node inside the superstate)
                      You can refer to nodes in superstates by prefixing them with the name of the enclosing superstate (e.g. 'phase one/invite murphy' or if you are inside phase two '../phase one/invite murphy)
                      The difference with process states is that the nodes composing a superstate are not necessarily a reusable process on their own.

                      Hope this helps,
                      Koen

                      • 8. Re: Example uses superstate
                        pacolinus

                        I'm trying to make a diagram using super-states. It seems to work if I define transactions inside the super-state but outside of the states enclosed, but I can't refer any token outside the the super-state from the inside of a state enclosed. I tryed all the possible paths!is it a bug?