Gateway with more than two outputs

Hi, I use a gateway with 4 outputs, which variable should I use? I opted for a string variable with a list of options and for each arrow in the condition I entered : variable == “option1” and “option2”, etc…
In your opinion is correct? However, the software gives me an error

It depends what you want to do. What is the test of your Gateway? What is your outputs?

a student have to choose the reason for the tax refund, for example, the winner of a scholarship (3 options) or incorrect payment. so i create a boolean variable with a list of options and for each arrow i entered the relative condition .

Hi,

I do not know if it is what you want but have a look and tell me more.

Test process: http://dl.free.fr/eA2x7PsQl
Picture of the test: http://www.hostingpics.net/viewer.php?id=406192Option4.png

Cheers,
Sylvain

I can see only the image which represents excatly , my process but i can’t open the file because i haven’t the application. In fact when i click on the first link appears the error : application not found .
I’m sorry if I’m wasting you a lot of time.

Hi,

Not a problem for me to help you. This is a community forum.

Try to download the file here: http://www.filedropper.com/option4-10

When u have it. unzip it, take the file Option4.proc and paste it here : C:\BonitaBPMCommunity-6.3.1\workspace\default\diagrams
Open you Bonita and open it.


If it doesn’t work, you must:

  1. Create a variable on your pool “optionTax” (type: Text)
  2. On step 1 create a form with a combobox. In the field “data” fill it like it:
    - available value: (dont know if it is the correct name I have a french version): take scrypt and paste :
    [“Option1”,“Option2”,“Option3”,“Option4”]
    Choose a name like “option” and the type is “java.util.List”
    - selected value: take the variable previously created “optionTax”
    - output value: take the variable previously created “optionTax”
    - take the value of: take the name of the field of the combobox: “field_Sélectionner” for me
  3. Back to the BPMN representation. Create your Gateway and your next HUMAN TASKS (thx Yannick).
  4. On one of the flow, put it by default (for me it is the option 4). To do it, select the flow, general tab and check the check box “default”
  5. On each other flow, click and select a comparison expression. For the option 1 it is: optionTax==“Option1”
  6. Do it for the others and change only the number. This is the name of each solution in the combobox.
  7. Run the process

Tell me if it works.

thank you very much for the patient. i solved the problem :slight_smile:

Hi,

What is your error ?

You need to use 2 variables : A String (that you named “variable” in your example) and a List of choice.
Then you need a Human task where the user choose one choice (option1 for example) and your String variable takes the value of this choice.
Finally you have the good conditions : variable==“option1”.