Yes of course you can model your process with multiple gateways to check for the %. If you need a more advanced solution you can use business rules to create dynamic branches of your process depending the %.
Thank you very much for your quick response, can you be more specific on how to use business rules to create a dynamic branches of the process depending on the %? If you can point me to some document, it would be really helpful.
I am new to JBPM, So I may have some silly questions on the way :-). If I do, please forgive me.
BTW, I am using JBPM5.
You have two simple options:
1) Create new process instance dynamically based on the % that you have for a specific instance. So you will end up having multiple rules that evaluate different values of the % and based on that create a new instance of a specific process.
2) you can have a complex gateway that select a different path depending the value of the %.
The third but more complicate option could be:
Create dynamic Human Tasks based on a rule that evaluates the value of the %. This task will be created dynamically and using a Complex Converging Gateway you can wait for all the dyncamic task to be completed.
I don't have any example of this, but if you have a specific use case I can help with the solution design. If you want to share your use case privately go ahead and send me a private message.. if you can share it with all I will be glad to help.
Appreciate your kind offer, I will send you a private message after our requirement is finalized.
I will be really interested in how to make it work without writing code on our own :-).
Thanks again for your quick and helpful response.
Sounds as a good challange
I will be waiting your PM.
Sure, thanks, I will ask your help later .
You could take a look at the ad hoc sub-process for advanced processes where parts of the proces might or might not be executed based on some constraints or user selection.
Thanks for the links, I will definitely check out the links that you sent!