2 Replies Latest reply on Feb 25, 2008 8:12 AM by bryan borg

    Difference between .cancel() and .compensate() BusinessAgree

    bryan borg Newbie

      Hi,

      Could anyone please explain the difference between the .cancel() and the .compensate() methods exposed in the BusinessAgreementWithParticipantCompletionParticipant interface.

      In the api, it is suggested that both are invoked when the transaction has cancelled. The .compensate method is invoked when the UserBusinessActivity.cancel() is invoked.

      However it is not clear to me when the .cancel() method in the BusinessAgreementWithParticipantCompletionParticipant interface is invoked. Isn't it sort of redundant to the compensate method?