Uploaded image for project: 'camunda BPM'
  1. camunda BPM
  2. CAM-10257

Provide high-level Java long-polling external task API

XMLWordPrintable

    • Icon: Feature Request Feature Request
    • Resolution: Won't Fix
    • Icon: L3 - Default L3 - Default
    • None
    • None
    • engine

      It is currently possible to implement a long polling external task worker using the low-level java API (See code example in CAM-10256)

      The idea of this FR is to provide a slightly more high-level API along the lines of

      List<LockedExternalTask> externalTasks = externalTaskService.fetchAndLock(500, "worker-id")
              .topic("topic-name", 60 * 5 * 1000)
              .executeWithTimeout(5000);  // blocks for at most 5 seconds if no tasks are immediately available, returns earlier if tasks become available during timeout
      

      Under the covers this would use the Condition primitives to block if no tasks are immediately available.

        This is the controller panel for Smart Panels app

              Unassigned Unassigned
              meyer Daniel Meyer
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: