2 Replies Latest reply on Jun 22, 2007 10:43 AM by Cristián Espinoza

    beginner question...

    kelly goedert Apprentice


      I´m trying my first process with jbpm. I have a form where the user is supposed to fill in some data and submit it for approval. What can I in a situation like this:

      The users fills in the form and submits it.
      After submitting the users figures out that one of the values was wrong.

      I would like the user to be able to correct the information if it was not yet approved. Is it possible? How can I do it?

      Thank you


        • 1. Re: beginner question...
          Jean-Louis Rastapoc Newbie

          Maybe you can create a "modification task" for the submitter and cancel it when the approval task ends.

          If you put both approval task and modification task in a fork and only let the save button in the modification form (so it is never validated from the form)... I think it should do the trick.

          Never done that though... it's just an idea. I'm pretty sure there are some other (better?) solutions.

          • 2. Re: beginner question...
            Cristián Espinoza Newbie

            Maybe you can add a transition from the node where the process instance is located after the data has been submitted pointing back to the initial state (the one related to the input of data). Programatically you can choose which path the token is going to follow.

            Other approach we have used is to have two phases in the input stage:

            - At the first part, the user only inputs data and saves it. At any time he can modify it and save it again.

            - Only when the user is sure the data is correct he commits it, and only then the corresponding process instance is signalled to the next state.

            This way we avoid moving the token back and let the user confirm the information he is sending.