6 Replies Latest reply on Feb 23, 2009 8:00 PM by jeffery c

    process resume

    jeffery c Newbie

      assue that i want to build a simple workflow with my own simple language definition on top of pvm,
      and i want the workflow could have this feature:
      when a activity execute failed, the process instance could persist,
      and users could see the failed process instance and decide whther to resume,
      if the user decide to resume, i except that the process could restart from the failed activity to redo it.

      is the current pvm support this and developers could just easily to achieve the goals? i mean easily resume..
      to meet this demand, how can i do it?

        • 1. Re: process resume
          Ronald van Kuijk Master

          To me this should be something modeled in. So create a 'error' state on which you e.g. set the name of the node the process was when the error occured. When an error occurs, explicitly move this token to this error state. When this error state is acted on, while leaving this node, set the token to the node you stored.

          • 2. Re: process resume
            jeffery c Newbie

            stupid question:
            need i add every activity(maybe exception comes out) with at least two transitions? one for the normal destination, and one for the error state or?

            thx

            • 3. Re: process resume
              jeffery c Newbie

              BTW, what's the motivation for the constants STATE_SUSPEND, i mean, usually, what can i use it for?

              • 4. Re: process resume
                jeffery c Newbie

                and why i can not find any reference that the method ClientExecution#suspend called, what does this method used for

                • 5. Re: process resume
                  Ronald van Kuijk Master

                   

                  "galanfish" wrote:
                  stupid question:
                  need i add every activity(maybe exception comes out) with at least two transitions? one for the normal destination, and one for the error state or?

                  thx


                  Depends.... do you want it visible or not? You can move the token anywhere without having any transitions.... just put it in a state (see the api)

                  • 6. Re: process resume
                    jeffery c Newbie

                     

                    "kukeltje" wrote:
                    "galanfish" wrote:
                    stupid question:
                    need i add every activity(maybe exception comes out) with at least two transitions? one for the normal destination, and one for the error state or?

                    thx


                    Depends.... do you want it visible or not? You can move the token anywhere without having any transitions.... just put it in a state (see the api)


                    thx, kukeltje, i've read the devguide of jbpm4 alpha1, and i still can't find any information about 'token'. i know that there is a 'token' in jbpm3, but i have never learn about jbpm3. could you tell me what's the concept of 'token' in the process virtual machine of jbpm4...
                    appreciate.