This discussion is archived
1 Reply Latest reply: May 12, 2013 11:49 PM by 1008485 RSS

Idempotent and Non-idempotent activites

1005187 Newbie
Currently Being Moderated
Can you give me the examples for Idempotent and Non-Idempotent activities in BPEL also describe them in brief.

Send to my mail id - hrushikumarsoa@gmail.com

Regards,
Hrushi.
  • 1. Re: Idempotent and Non-idempotent activites
    1008485 Newbie
    Currently Being Moderated
    Activities which can be retried are called idempotent activities. Examples are : assign activity, invoke activity etc. So if the BPEL process is recovered from the dehydration store , then these activities are retried again (idempotent activities are not stored in dehydration store if there is no dehydration activity like checkpoint() ) . Non idempotent activities are those which causes the BPEL process to dehydration and so there state is saved into dehydration store. If the BPEL process is recovered from the dehydration store, these activities are not retried . Examples are : wait activity, mid point receive activity, pick activity , checkpoint() etc.

    So when you specify the idempotent property as "false" in the partner link of a BPEL process , this becomes non idempotent and cause the BPEL process for dehydration and so a commit occurs . This is another way of ending the current transaction of a BPEL process and start a new one.

    Hope this helps.

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points