XOR conditional output settings?

1
0
-1

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.png

Bos file at brianhunt.org/xor_problem.bos

Thanks for any help.

Comments

Submitted by brian_122 on Tue, 11/10/2015 - 10:28

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

3 answers

1
+1
-1

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

1
0
-1

Comments

Submitted by Sean McP on Tue, 11/10/2015 - 14:02

Hi Brian,

(Always look...bet you get that a lot :)

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

Submitted by brian_122 on Tue, 11/10/2015 - 15:50

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!

Submitted by Sean McP on Tue, 11/10/2015 - 16:12

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.

Submitted by brian_122 on Tue, 11/10/2015 - 17:17

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

1
0
-1

Thanks Sean

I've tried as shown in the images below

[url=http://postimg.org/image/jd73hc5i7/][img]http://s27.postimg.org/jd73hc5i...

[url=http://postimg.org/image/qf513j93z/][img]http://s27.postimg.org/qf513j93...

[url=http://postimg.org/image/cwy4r8wyn/][img]http://s27.postimg.org/cwy4r8wy...

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

Notifications