Answered

Exclusive Gateway Expression and Return

Hello Everyone In Bizagi team

I have two question about Exclusive Gateways in Bizagi:

I design a process diagram for books information entry. In the first step, users enter the ISBN and if it was duplicated, the process ends. So I have use an expression for this check :

false;

if (<B.BookProperties[ISBN = B.ISBNCHK]>)

{

CHelper.trace("T1", "Yes path");

true;

}

else

{

false;

}

BookProperties is the master data entity here and ISBNCHK is the entered parameter.

But it always return true and the process ends. Is this expression wrong ?

My second question is: I have another exclusive gateway that users make decision if information they entered are correct or not. If they don't approve thees information one exclusive path return one step back and show the info to users so they can correct them. but when I made this path and validated it, the Bizagi told this is impossible to return back.

Would you please help me and give some information about it?

Thanks a lot

Comments (3)

photo
1

Dear Tahere,

Analysing your if, it has some mistakes. You are using a filter that is also wrong. To understand much better it, please attach a process image and a screenshot of it.

You can create an if like this: http://help.bizagi.com/bpm-suite/en/index.html?boolean_while_and_if_elements.htm

We look forward to hearing from you

photo
1

Dear Juan

Thanks for your reply and that useful link. I'am a novice in using xPath.

I attached a screenshot as you wanted. In this diagram I have an exclusive Gateway in the name of Duplicated? which I want to check the ISBN number, if it was duplicated the process would finish. The expression that mentioned in the previous question will be used here.

Then in the second Gateway it check the information if the manager or user confirm accuracy them the process ends but if information needs any correction it should back to activity book info entry so that the user can enter the correct info.

When I added the path back to this step, the validation gave some error then I add another activity for editing.

I'm not sure which approach is correct.

Thanks a lot

photo
1

Dear Tahere,

The attached screenshot is not enough to help you because we cannot see the Xpath.

Example to validate if the sum is equal to 10:

  1. if(<B.sum> == 10) { return true; }
  2. else { return false; }

Regards