Class SyncScheduler


  • @DeclareRoles("org.imixs.ACCESSLEVEL.MANAGERACCESS")
    @RunAs("org.imixs.ACCESSLEVEL.MANAGERACCESS")
    public class SyncScheduler
    extends Object
    The SyncScheduler starts a TimerService to pull new snapshot events from the workflow instance and push the snapshot data into the cassandra cluster
    Version:
    3.0
    Author:
    ralph.soika@imixs.com
    See Also:
    SyncService
    • Constructor Detail

      • SyncScheduler

        public SyncScheduler()
    • Method Detail

      • init

        @PostConstruct
        public void init()
        Initialize ManagedScheduledExecutorService
      • run

        public void run​(javax.ejb.Timer timer)
        This method is called by the TimerService.

        In case of a form based authentication, the method tries to login to the workflow instance first and stores the JSESSIONID into the timer config. If a JSESSIONID already exist, the id is reused. This is to avoid multiple login session to the workflow instance.

        In case of a Basic authentication no explicit login is performed (because implicit basic authentication is sufficient).

        Throws:
        ArchiveException