Uploaded image for project: 'Red Hat Fuse'
  1. Red Hat Fuse
  2. ENTESB-11539

Schedule an integration

    XMLWordPrintable

Details

    • % %
    • ?
    • 0
    • 0% 0%

    Description

      (Migrated from https://github.com/syndesisio/syndesis/issues/736)

      Author: Luca Burgazzoli
      Assignees: Luca Burgazzoli,
      To schedule an integration we now need to rely on specific connector options which leads to inconsistencies and maintenance cost so it would be nice to have a generic way to configure integration/flow schedulers.

      • on UI side , we should have a generic section on the integration/flow editor to define scheduling options
      • on model side, the integration model should have an additional type, like:

      ``

      java
      interface Scheduler { 
          enum Type {
             timer,
             cron
          }
      
          /__
           * The schedule definition according to the type, i.e.
           *  - timer: "1s"
           _  - cron: "0 0/5 12-18 ? _ MON-FRI"
           */
          String getDefinition()
      
          /__
           * The scheduler type
           */
          Type getType()
      }
      
      
      interface Integration {
          ...
          Optional[Scheduler] getScheduler();
          ....
      }
      

      `

      - on backend side: as we do not need to expose the routes to end user anymore we can simple generate a standard camel endpoint of type 

      timer

      , 

      scheduler

       or 

      quartz` according to the configured scheduler type

      @rhuss @kcbabo @chirino does it make sense ?

      Attachments

        Activity

          People

            lburgazz@redhat.com Luca Burgazzoli
            rhn-support-hbraun Heiko Braun
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: