book
Article ID: KB0087003
calendar_today
Updated On:
Description
Resolution:
Sequencing and parallel or multi processing can not co-exist. If the processing has to be completely sequencial, means from start to the end of the the job. In otherwards if the second job shouldn't start before the first job is completely finished, then one cannot do parallel processing. One should have a SINGLE bwengine consuming the messages from EMS queue/message source and process them one by one.
Sequencing can be enabled on a process starter, but one should remember it will seriously limit the processing capacity. To enable sequencing
1. On the Process starter activity, go to tab named "Misc"
2. Give some constant value in the "Sequencing Key field".
This will make sure all the messages are processed sequencially by a particular bwengine, but by any chance, if one of the jobs is hanging, then all other sub-sequent jobs will wait at the starter activity for the first job to be processed completely.
An alternative approach is to use MaxJobs and Flow limit values to 1, that way only one job will be started and subsequent messages have to wait in message source (EMS server or RVCM ledger file) itself for that first one to finish. Please go thru the following documentation for more details on this
-----------
TIBCO Administrator User’s Guide
Chapter 12 Advanced TIBCO BusinessWorks Configuration
Controlling Execution of TIBCO BusinessWorks Services
-----------
If the processing has to be sequencial only for a set of activities in the whole process, then may be one can try to use inter process communication mechanisms to design the solution, such that parallel processing is done for all the activities in the process except for the selected set of activities for sequencial processing in the process. Please refer to the below documentation for more details on inter process communication
--------------
TIBCO BusinessWorks Process Design Guide
Chapter 13 Inter-Process Communication
Overview of Inter-Process Communication
--------------
Alternatively one may also split the processing into multiple processes and use messaging in between to sequence the processing for a set of activities/processes.
Suitable solution has to be designed based on the particular business needs.
KEYWORDS: SEQUENCING SEQUENCIAL PROCESSING SEQUENCE BWENGINE JOBS MAXJOBS
Issue/Introduction
How to achieve sequencial processing of jobs in BW? Is it possible to have maxJobs parameters to more than 1 and still achive sequencial processing?