Example #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));
 }
Example #2
0
 public void terminate(ExecutionContext exeContext) {
   IntegrationService integrationService =
       Receiver.getIntegrationService(exeContext.getJbpmContext());
   integrationService.endReception(receiver, exeContext.getToken());
 }