Ejemplo n.º 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));
 }
Ejemplo n.º 2
0
 public void setReceiver(Receiver receiver) {
   this.receiver = receiver;
   receiver.setInboundMessageActivity(this);
 }
Ejemplo n.º 3
0
 public void execute(ExecutionContext exeContext) {
   IntegrationService integrationService =
       Receiver.getIntegrationService(exeContext.getJbpmContext());
   integrationService.receive(receiver, exeContext.getToken());
 }
Ejemplo n.º 4
0
 public void terminate(ExecutionContext exeContext) {
   IntegrationService integrationService =
       Receiver.getIntegrationService(exeContext.getJbpmContext());
   integrationService.endReception(receiver, exeContext.getToken());
 }
 protected void closeListener() throws Exception {
   Receiver.getIntegrationService(jbpmContext).endReception(receiver, token);
 }