[jbpm-dev] [Design of JBoss jBPM] - Re: task component interface comments

jbarrez do-not-reply at jboss.com
Mon Dec 8 09:14:22 EST 2008


I don't think it is a real 'problem', but my for my feeling it seems wrong.

Isn't this 'more clean':

taskService.newTask()
    .withName("TestTask")
    .withDueDate(someDay)
    .withActor("Joram");

This way you can have the fluent interface (which I agree is nice to have) and the setters. Downside is that that withXXX() methods are almost the same as the setters.

Ofc, this is just my opinion, perhaps I'm completely wrong on this one.

   

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

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



More information about the jbpm-dev mailing list