Skip to main content

Send/Receive task vs Throw/Catch Message events in Oracle BPM

In Oracle BPM "Service task" is used for invoking Synchronous web-service calls. It wont be useful for Asynchronous service calls.

To deal with  Asynchronous service calls,  Send/Receive or Throw/Catch events need to be used.

There are few differences and similarities between Send/Receive and Throw/Catch Message events. Please have a look at them below.

Send/Receive Task Throw/Catch Message Events
Can it be used to initiate task? Yes Yes
Can it be used to call/invoke Synchronous services/processes? No No
Can it be used to call/invoke Asynchronous services/processes? Yes Yes
Does correlation/conversation need to be set to deal with Asynchronous tasks? Yes Yes
Can it have boundary events associated to it? Yes No
Can these pair be used to create synchronous process /service? Yes Yes
Can these pair be used to create Asynchronous process /service? Yes Yes

Send and Receive task example with boundary events attached to it can be found here.

Comments

Popular posts from this blog

How to control CUDA Devices to be used in Windows 10 for Keras/Theano/TensorFlow training

I've two 1080ti GPUs , I would like to use only one of the device for DeepLearning Training purpose,Most of the google suggestions advising to use CUDA_VISIBLE_DEVICES environment variable.Setting CUDA_VISIBLE_DEVICES either in windows environment variables are as programmatic way dint help much. But below approach helped to control the GPU usage for CUDA operations. Open NVIDIA Control Panel" by right clicking on the desktop screen. And select CUDA-GPUs to the desired gpu you want to use for DL training, In my case: I chose 2nd GPU Peace!!

ApplicationContext creation/usage among XSLs in BPEL(Oracle SOA) process.

In these posts post1 , post2 , I have explained how to create custom XSL functions using Java in both BPEL(Oracle SOA)/BPM(Oracle BPM) processes. This post describes about ,how to create ApplicationContext and how to use it among XSLs across Oracle SOA process. Below example explains on how to calculate  age of persons by taking array of DateOfBirth  inputs. I know it can be done with simple XSL transformation by calling custom XSL function.  But, the main intention is to explain the ApplicationContext creation and usage of it over multiple XSLs used in the course of BPELprocess. ApplicationContext meaning here is : Create a Java Context(with inspiration of ThreadLocal class)  object which gets initialized at start of the BPEL process with necessary data either in the form of Collections or POJO, And hold these initialized definitions throughout the lifecycle of BPEL Process token(instance) ,which can be read or modified as and when needed. Note/W...