I got one requirement where I want to call one process only twice based on the return document that calling process sends.So lets say if my process returns some out, so based on that output it should call the other process only twice, in third call it simply follow the other path. I can not use try/catch because in that case my web service end point error code changes in the response profile. Is there any other way like using groovy script, or any other shape. I tried different things but it did not work. Please help.