[jboss-user] [JBoss jBPM] - Re: Decision node always taking first option
Razieh
do-not-reply at jboss.com
Wed Sep 12 09:11:39 EDT 2007
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("taskCreatePetition");
}
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("taskPrepareLetterForDossierSource");
}
i hope it can help you.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4083430#4083430
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4083430
More information about the jboss-user
mailing list