[jboss-dev-forums] [Design of JBoss jBPM] - Adding attributes (even nodes) to jPDL without DB changes

kukeltje do-not-reply at jboss.com
Wed Jul 4 20:55:05 EDT 2007


Hi,

I implemented a nice extension in jBPM which makes it possible to add custom attributes to jBPL by using a custom namespace


  | <variable myPrefix:myAttribute="myVal"> 
  | 
becomes possible then, which can be used in the api by VariableAccess.getExtension(task, prefix, attribute). This does not require db changes since it is retrieved from the processdefinition xml file

Maybe the method should move, but the idea is generic. It would even be possible to add jbpm/jpdl attributes without (initially) requiring db changes. E.g. the attribute 'evaluate="always|once(default)" on a swimlane could be implemented in a real method but retrieving the value from the processdefinition.

This would limit using these attributes when designing a process with the api, but for adding functionality in between releases it would be ideal. 

Any comments?

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4060617#4060617

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4060617



More information about the jboss-dev-forums mailing list