[jboss-user] [JBoss jBPM] - Re: transitions
Razieh
do-not-reply at jboss.com
Wed Sep 12 09:09:02 EDT 2007
public void cancel(long id) {
User user = (User) em.createQuery("select u from User u where u.id=" + id).getSingleResult();
TaskInstance ti = taskInfo.findTaskInstance(taskId);
ti.start();
this.dossierAssignee = user;
ti.end("treatment");
}
public void approve(long id) {
User user = (User) em.createQuery("select u from User u where u.id=" + id).getSingleResult();
TaskInstance ti = taskInfo.findTaskInstance(taskId);
ti.start();
this.dossierAssignee = user;
ti.end("Satisfaction");
}
i hope it can help you.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4083429#4083429
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4083429
More information about the jboss-user
mailing list