XOR conditional output settings?

I want to use an XOR as a simple yes no decision box but get the message " all output transitions from an XOR gateway must be default or conditional."

How do I set these conditional outputs?

![example][example]
[example]: brianhunt.org/example.png

Bos file at brianhunt.org/xor_problem.bos

Thanks for any help.

Click on the LINE leaving the gateway and add the condition for example

saleApproved == true

on the OTHER LINE

(I always add the opposite condition) saleApproved == false and then click Default Action

Choose whichever is the correct default as per your requirements

regards

Thanks Sean

I’ve tried as shown in the images below

So I have to put the exit condition from the gate on the line? Not sure of the syntax for that - I note that you used saleApproved format

Images reposted

http://postimg.org/image/jd73hc5i7/

http://postimg.org/image/qf513j93z/

http://postimg.org/image/cwy4r8wyn/

Image reposted as not showing http://brianhunt.org/example.png
or example

Hi Brian,

(Always look…bet you get that a lot :slight_smile:

You’re almost there…

1st I fixed the previous post the second saleApproved should have been false…

In the condition the left hand operator is a pool variable that should be set by something, either a human task or the service task (send file for checking)

So for example if a human task a person would click a check box - is the sale approved - Yes then as an output operation from the task you would set saleApproved = true or not true (false) based on whether the box was checked or not.

The condition is based on Java Speak so should be saleApproved == true is the right way to do it.

One of the routes needs to be default…so choose one. I put the condition in only as documentation so if I wonder what default is…I can easily read it. Think of a gateway with multiple conditions…temperature gt 1; gt 2; gt 3 etc…

In your diagram though you are sending a message, this is not necessary, to send data to this subprocess just create a mapping of your data variable from this process to the subprocess, click on the Caller and click General->Mapping. You can then pass data from the caller to the sub and return data from the sub to the caller.

In this case send the credit file, and return a boolean variable saleApproved…

regards

Thanks Sean - I’ll have a play with that. I can see how powerful Bonita BPM is, but a lot to learn coming from a Visio world!

Ahhhh Visio…

How deep did you go?

BPM is the design, to use BPM needs programming skills. Regardless of which system you use.

Visio, I used to program Excel, Word and Visio to create flowcharts etc.

I do business process mapping - only coding I know is BASIC. It would be good if the coding error check could be switched off. Busy now, till Thursday but then I’ll dig into gaining a better understanding of how gateways work.

Cheers