cancel
Showing results for 
Search instead for 
Did you mean: 

Removing subscribed boundary-signal-events of previous process-definition on process-model deployment

mf
Confirmed Champ
Confirmed Champ
Hi,

By deploying process-model, all signal-event (including start, boundary, and intermediate-catching) subscriptions of the previous process-definition, will be removed. But it only makes sense for start-signal-events, because it's not desired to start process from previous process-definitions. But, about boundary and intermediate-catching signal-events, removing subscriptions does not make any sense; Because  in case of throwing signals, it's desired boundary and intermediate-catching signal-events of processes of previous process-definition, catch it.

Is it a bug or something else?

Here is the method which removes all signal-events of previous process-definition in BpmnDeployer class:


protected void removeObsoleteSignalEventSubScription(ProcessDefinitionEntity processDefinition, ProcessDefinitionEntity latestProcessDefinition) {
    // remove all subscriptions for the previous version   
    if(latestProcessDefinition != null) {
      CommandContext commandContext = Context.getCommandContext();
     
      List<EventSubscriptionEntity> subscriptionsToDelete = commandContext
        .getEventSubscriptionEntityManager()
        .findEventSubscriptionsByConfiguration(SignalEventHandler.EVENT_HANDLER_TYPE, latestProcessDefinition.getId(), latestProcessDefinition.getTenantId());
     
      for (EventSubscriptionEntity eventSubscriptionEntity : subscriptionsToDelete) {
         eventSubscriptionEntity.delete();
      }
     
    }
}
1 ACCEPTED ANSWER

mf
Confirmed Champ
Confirmed Champ
4 REPLIES 4

martin_grofcik
Confirmed Champ
Confirmed Champ
Hi,
Which activiti version do you use?
(I tried to reproduce the issue with the activiti 6)

Regards
Martin

mf
Confirmed Champ
Confirmed Champ
activiti 5.19

mf
Confirmed Champ
Confirmed Champ

jbarrez
Star Contributor
Star Contributor
That is correct.
Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.