[jboss-user] [jBPM] New message: "Re: implementing java logic inside task node"

praneet nandan do-not-reply at jboss.com
Mon Feb 22 04:22:10 EST 2010


User development,

A new message was posted in the thread "implementing java logic inside task node":

http://community.jboss.org/message/527545#527545

Author  : praneet nandan
Profile : http://community.jboss.org/people/praneet

Message:
--------------------------------------------------------------
he lele thanks for replying 
   just look what i am doing this is my task node where asignee is student who has filled the form.
 
     <task assignee="#{student.fName}" g="117,198,166,52" name="complete-registration-online">
      <transition name="to send-welcome-email" to="send-welcome-email" g="-114,-18"/>
   </task>
 
     then in the service class i am written following method. when student sumit the form
     following method is called .
 
 
 
public void saveForm(Form form) {
 String name=form.getStudent().getName();
 List<Task> tasks=taskService.findPersonalTasks(name);
 System.out.println(tasks.get(0));
 hibernateTemplate.saveOrUpdate(form);
 taskService.completeTask(tasks.get(0).getId());
  
 }
 
 
  in this method when form is saved what i have done is i have  called the complete task method.
 
      so my question is this is write way to implement the task node or i have to do something different please suugest

--------------------------------------------------------------

To reply to this message visit the message page: http://community.jboss.org/message/527545#527545




More information about the jboss-user mailing list