예제 #1
0
 public void messageReceived(Receiver receiver, Token token) {
   // close the receiver
   IntegrationService integrationService =
       Receiver.getIntegrationService(JbpmContext.getCurrentJbpmContext());
   integrationService.endReception(receiver, token);
   // execute the next activity
   leave(new ExecutionContext(token));
 }
예제 #2
0
 /** @deprecated use {@link org.jbpm.JbpmContext#save(ProcessInstance)} instead. */
 public void saveProcessInstance(ProcessInstance processInstance) {
   JbpmContext.getCurrentJbpmContext().save(processInstance);
 }