Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Following types of workflows supported

Jira Legacy
showSummaryfalse
serverJIRA (mqidentity.atlassian.net)
serverId77fb3325-4051-36d9-bcc7-761f62050707
keyDOCS-36

Stream workflow, deploying pipeline, triggering pipeline (in repeatable workflows, they are often differently from deploying pipelines)

(each incarnation of workflow only executed once,

 

In TQL, each instance of a workflow (or process) can only be executed once. Repeatable workflows . However, in many circumstances, you may want a workflow to be executed multiple times, for instance, the process to update an attribute value may needs to be repeated every time a sensor event comes in. Such "repeatable workflows" are represented as process streams where each process instance is a self-contained independent copy of the original workflow [definition] run running with specific arguments.

     1. Non Non-repeatable (single run, non-stream) workflows (used in AppFacets)

     Such workflow is Such workflows runs for a single time and never repeats. If you do not specify the "While" modifier for the first workflow task, a workflow will run only once. (By default a task's while = "false".) Non-repeatable workflows should be started immediately after compilation (i.e. after it is deployed) and executes synchronously (in relation to the originating pipeline). That is the pipeline will wait until workflow completes. This precludes such workflow from waiting on any events.

(initial task(s) should start without waiting) - recommended

example Broadcast to a number of http end points concurrently

If it is waiting for a value, the whole pipeline will be waitingwithout waiting for any events for it to activate or continue.

Examples of non-repeatable workflows are often used in AppFacets.

Code Block
languagexml
titleNon-repeatable workflow example
linenumberstrue
place holder for example of non-repeatable workflow

 

      2. Repeatable (multi-run, stream) workflows - usually used to process (sequence of) events

...

Expand
titleunused notes
Info
iconfalse

Workflow instances run on top of pipelines, that is, they use pipelines to be instantiate, trigger or communicate. We call the pipeline that instantiate a workflow instance the originating pipeline. Based on the relationship between the workflow and its originating pipeline, workflow can be categorized into non-repeatable workflows and repeatable workflows.

In non-repeatable workflow, the originating pipeline waits until the workflow completes. In repeating working, the originating pipeline does not wait. The workflow, after being instantiated, may be triggered by a different pipeline.