Wednesday, May 14, 2014

Pick activity is very important in BPEL. We use this activity in following cases.
  •  When we call asynchronous service and we need response back in certain time frame otherwise we need to throw exception.
  • When we want to have multiple entry point for any composite. E.g. when we want our process when it is invoked by client or when any message is put to JMS queue by client.


Pick activity has two branches, OnMessage Branch and OnAlarm Branch which are explained below.

Out of these two branches, only one will execute.

OnMessage is same as Receive activity. It is used when we need to receive message from external system.




OnAlarm branch is used when we want to specify expiry time.


4 comments :

  1. Hi Vivek,
    I need your help.
    for below case
    Hi
    sid,marks
    1,77
    1,55
    2,99
    2,77
    Can anyone tell me how to solve this, in the above csv you have 2 records with same sid,now I want to add marks of same id and store it in different student tables.
    please help on this one.
    Thanks Vivek

    ReplyDelete
    Replies
    1. This looks simple. What issue you are facing ?

      Delete
  2. Hi Vivek,
    How to compare the records in file adapter. Do you have any sample code to share with me. It will be very helpful to me.

    Thanks Vivek.

    ReplyDelete
    Replies
    1. I am not sure if file adapter has provision to compare the records. I will check and let you know.

      If adapter can't compare the records, you can definitely do it in BPEL.

      Delete