[jboss-user] [jBPM Development] New message: "Re: No public metadata API?"

Bill Burke do-not-reply at jboss.com
Tue Feb 9 15:45:07 EST 2010


User development,

A new message was posted in the thread "No public metadata API?":

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

Author  : Bill Burke
Profile : http://community.jboss.org/people/bill.burke@jboss.com

Message:
--------------------------------------------------------------
Well, I got it to work doing this:
 
import org.jbpm.pvm.internal.model.Activity;
import org.jbpm.pvm.internal.model.ProcessDefinitionImpl;
import org.jbpm.pvm.internal.model.Transition;
 
 
{...
      if (instance.findActiveActivityNames().size() < 1) return;
      String activityName = instance.findActiveActivityNames().iterator().next();
 
      ProcessDefinitionImpl pd = (ProcessDefinitionImpl)engine.getRepositoryService().createProcessDefinitionQuery().processDefinitionId(instance.getProcessDefinitionId()).uniqueResult();
      Activity current = pd.findActivity(activityName);
      for (Transition transition : current.getOutgoingTransitions())
      {...}
}

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

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




More information about the jboss-user mailing list