void afterServicesStartOfRestartHandlersOfTenant(final PlatformServiceAccessor platformAccessor, final Map<STenant, List<TenantRestartHandler>> tenantRestartHandlersOfTenants) { final NodeConfiguration platformConfiguration = platformAccessor.getPlatformConfiguration(); if (platformConfiguration.shouldResumeElements()) { // Here get all elements that are not "finished" // * FlowNodes that have flag: stateExecuting to true: call execute on them (connectors were executing) // * Process instances with token count == 0 (either not started again or finishing) -> same thing connectors were executing // * transitions that are in state created: call execute on them // * flow node that are completed and not deleted : call execute to make it create transitions and so on // * all element that are in not stable state for (Entry<STenant, List<TenantRestartHandler>> tenantRestartHandlers : tenantRestartHandlersOfTenants.entrySet()) { TenantServiceAccessor tenantServiceAccessor = platformAccessor.getTenantServiceAccessor(tenantRestartHandlers.getKey().getId()); new TenantRestarter(platformAccessor, tenantServiceAccessor).executeAfterServicesStart(tenantRestartHandlers.getValue()); } } }
void afterServicesStartOfRestartHandlersOfTenant(final PlatformServiceAccessor platformAccessor, final Map<STenant, List<TenantRestartHandler>> tenantRestartHandlersOfTenants) { final NodeConfiguration platformConfiguration = platformAccessor.getPlatformConfiguration(); if (platformConfiguration.shouldResumeElements()) { // Here get all elements that are not "finished" // * FlowNodes that have flag: stateExecuting to true: call execute on them (connectors were executing) // * Process instances with token count == 0 (either not started again or finishing) -> same thing connectors were executing // * transitions that are in state created: call execute on them // * flow node that are completed and not deleted : call execute to make it create transitions and so on // * all element that are in not stable state for (Entry<STenant, List<TenantRestartHandler>> tenantRestartHandlers : tenantRestartHandlersOfTenants.entrySet()) { TenantServiceAccessor tenantServiceAccessor = platformAccessor.getTenantServiceAccessor(tenantRestartHandlers.getKey().getId()); new TenantRestarter(platformAccessor, tenantServiceAccessor).executeAfterServicesStart(tenantRestartHandlers.getValue()); } } }
final NodeConfiguration platformConfiguration = platformAccessor.getPlatformConfiguration(); Map<STenant, List<TenantRestartHandler>> restartHandlers = new HashMap<>(); if (platformConfiguration.shouldResumeElements()) {
final NodeConfiguration platformConfiguration = platformAccessor.getPlatformConfiguration(); Map<STenant, List<TenantRestartHandler>> restartHandlers = new HashMap<>(); if (platformConfiguration.shouldResumeElements()) {