How to remove a task from a JBPM workflow?
Is it possible to remove a task from an existing workflow in JBPM? I wouldn't like to h开发者_运维问答ave a new workflow, only modify the existing one.
I'm using JBPM 3.2.2
This is unfortunately not possible.
The only solution I can think of in this case is the following:
- introduce an exception in the workflow, so that it stops
- deploy a new workflow
- recover the data from the old workflow and start a new workflow up with the old data.
If you are using the default H2 database and trying to delete the tasks then,
Go to your username folder, for example, C:\Documents and Settings\ and delete two following H2-related database files,
- jbpm-db.h2.db
- jbpm-db.lock.db
Restart the process. It should work fine. Basically, navigate to the folder where your .eclipse or .m2 folder, etc. are created and delete the two files mentioned above.
I hope this helps.
精彩评论