[jboss-user] [jBPM] - Re: How to get taskId defined in BPMN file

Mauricio Salatino do-not-reply at jboss.com
Fri Apr 27 19:04:45 EDT 2012

Mauricio Salatino [https://community.jboss.org/people/salaboy21] created the discussion

"Re: How to get taskId defined in BPMN file"

To view the discussion, visit: https://community.jboss.org/message/732785#732785

"I want to keep some mapping between web pages to be shown and corresponding id defined in BPMN file" That doesn't sounds as a good idea... 
When you say: "IDs are defined manually by a developer who writes the BPMN file" this is true when you have a controlled scenario that will never change. The IDs will change because if you remove and add a new one with the graphical editor the ID will be incremented and the new node will not have the old ID. As you mention you cannot rely on the other ID (the long one) because you don't know the algorithm used to generate that. You are creating a strong binding from the process to the BPMN file which is not a good idea. Why not using a Task List Oriented Approach, where the user picks the tasks from a list of pending tasks, and if the user just have one task, that task is automatically displayed? 


Reply to this message by going to Community

Start a new discussion in jBPM at Community

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20120427/c8db25a6/attachment-0001.html 

More information about the jboss-user mailing list