Workflow Bridge Agents
This section describes the Workflow Bridge agents. The agents are used for fast collection and forwarding of data between workflows. The agents can be part of both batch and real-time workflows. The Workflow Bridge forwarding agent is listed among the processing agents in Desktop while the Workflow Bridge collection agent is listed among the collection agents.
The Workflow Bridge agents act as a bridge for communication between real-time workflows, or between a batch and a real-time workflow, within the same system.
The Workflow Bridge agents do not use any storage server to manage the data. Data is instead stored in memory cache when executing on the same EC, or streamed directly from one agent to another, over TCP/IP, when executing on different ECs. This provides efficient transfer of data, especially from batch to real-time workflows.
The forwarding and collection workflows communicate by using a dedicated set of UDRs:
Data is sent from a forwarding workflow to a collection workflow in a
ConsumeCycleUDR
. Refer to ConsumeCycleUDR for further information.In the
ConsumeCycleUDR
there are also fields that enable broadcasting and load balancing. Broadcasting, i e sending the same UDR to several different workflow instances in the collecting workflow, can be made to a configurable number of workflow instances. Load balancing enables you to configure to which workflow instance each UDR should be sent, based on criteria of your choice.Note!
If any other UDR than
ConsumeCycleUDR
is routed to the forwarding agent, the bridge will only support one collector, which means that it will not be possible to broadcast or load balance.Each state of a forwarding workflow is sent in a separate
WorkflowState
UDR to the real-time collection agent. The batch forwarding workflow sends all states from initialize to deinitialize, while a real-time forwarding workflow only sends the initialize state. The deinitialize state is sent by the real-time collection workflow if the connection goes down between the collection workflow and a forwarding workflow (batch or real-time).For more information regarding the workflow execution states, see Workflow Monitor.
User defined action UDRs can be sent from the collection workflow to communicate actions back to the forwarding workflow. For further information, see User Defined Action UDRs.
In the collecting workflow, the APL has to be configured to communicate responses for the UDRs to the Workflow Bridge collection agent. When both the forwarding and collecting workflows are real-time workflows, only responses for WorkflowState
UDRs have to be configured. However, when the forwarding workflow is a batch workflow, responses for ConsumeCycle
UDRs have to be configured as well.
Responses for WorkflowState
UDRs are always communicated back to the forwarding workflow. If you want to communicate responses for ConsumeCycle
UDRs back to the forwarding workflow as well, the Send Reply Over Bridge option has to be selected in the Workflow Bridge profile, see Workflow Bridge Profile for further information.
Workflow Bridge has two essential features; Session Context and Bulk Forwarding.
Session Context
By using a session context, arbitrary data can be stored and managed by the Workflow Bridge real-time collection agent during the whole transaction. This is achieved by populating the SessionContext field in the InitializeCycle
UDR or BeginBatchCycleUDR
with the data,