If a form is saved in a library, regardless of whether it was part of another process or not, and the view that the user opens allows them to submit the form then you all you would need to do is edit the data and click submit. The K2 process is bound to the submit rules of the form and would initiate a new instance of the process.
The only issue you may run into is that the view that is available when the process complted and uploaded the form is not the "submit" view. In this case you can simply edit the form to have a button on the last view that switches the view back to the submit view to allow a resubmit.
-Eric
There are probably a couple ways to do this but one way would be to set a "completed" value in the form using the data event before you upload the final version of the form at the end of the process and check for this value in the submit rules.
-Eric
I used before a field with a complete value but the problem was if the process was stopped was the K2 management portal than it was not true anymore that there was still a process running or not based on the field completed. I have found a way to verify if a process is running by using a smartobject. So I can retrieve the process status.
Now the problem is if a process is running and the user clicks submit. I will need either to redirect the current process to the proper step or kill this process and start a new one. I could not find a way to update or stop an existing process. I have tried the smartobjects and the reference event but so far I didn't succeed to find a solution. I have found some code in the forum for K2 black pearl but I have only BlackPoint. I have tried a few things with the reference event but I didn't succeed to replicate the blackpearl code exactly the same way.
What can I do?
Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.