I’m trying to do abort button (terminate the task incessantly) if user are accidentally select wrong task to do.
I’ve been looking up in Bonita Documentation and found this:
I have a solution, simpler than implementing a cancel button, which additionaly corresponds to our design best practices.
You should define the 1st process form on the start event of the process. Then, if the end-user clicks on the process, visualizes the 1st form, even starts to fill-it-in and notices it is not the right process, he can go back to its task list and no process instance is created.
Please come back to me to tell me if it fits your need.
I think it would be good to clarify your needs a little bit. When you say “accidentally select wrong task”, why do you need to “abort” it? Shouldn’t they just get back to their task list and leave the task for someone else (or they will select it later themselves)?
The peace of code you quoted cancels the entire process instance. Is this really what you want to do?
Yes, i want to clear the entire process instance. The reasons is:
Let says a client start a task and we called it Register New Bank Beneficiary
Then the client start filling necessary data in that task form
Suddenly, the client realize that’s not the task he/she intend to do
He/she might can simply close the current tab or choose to start new task in portal
The problem is, if i do not provide proper termination button (the client simply close current tab), the task will be dangling in Task Tab (Bonita Portal) and if i’ve a lot of user who practices this, the list will be long and irritating.
That way i need to terminate the entire process instance so the client wont be having a long list of pending task sir.
Bonitasoft empowers development teams with Bonita, the open-source and extensible platform to solve the most demanding process automation use cases. The Bonita platform accelerates delivery of complex applications with clear separation between capabilities for visual programming and for coding. Bonita integrates with existing solutions, orchestrates heterogeneous systems, and provides deep visibility into processes across the organization.