[jbpm-dev] [Design of JBoss jBPM] - Fluent programming on Commands

camunda do-not-reply at jboss.com
Wed Jun 10 06:04:55 EDT 2009


In jbpm 3 I introduced some "fluent" programming capabilities on Commands, so that you can write:


  | commandService.execute(
  |   new StartProcessInstanceCmd()
  |   .processDefinitionId(5)
  |   .addVariable("x", 5)
  |   .executionKey("88"));
  | 

What do you think, can we introduce that again? Was very handy for coding!

Shall we again have an extra method for it or just let the setters return the object itself (which would be possible if we do it before the first release I guess)?


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

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



More information about the jbpm-dev mailing list