cancel
Showing results for 
Search instead for 
Did you mean: 

Switch executing only one case

Former Member
0 Kudos

Hi,

I am comparatively new to xMII.

Here's my issue-related to switch block in xMII Logic Editor:

I have a sql query and two switch blocks.

Both the switch blocks have their 'MatchValue[x]' configured.

Also, I have the 'InputValue' configured - not very confident about this.

Now, the structure is somewhat ready.

e.g. in switch[1], the input value is type_id - which can have values - {1,2,3}

in second switch[2], the input value is loss_id - which can have values - {1,3,5}

the sql query returns the values [1,3,5], which is used as an input value to switch[2]

I give test values in the Transaction properties variables, which are used as input values by the sql query and the first switch block (switch[1]).

I observe that, only the first case is executed, when I supply the input parameters.

Please let me know if I am missing something here.

Thanks,

Praveen.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

if the switches are below each other you may have put the second in the "else" leg of the first by accident?

Former Member
0 Kudos

Hi,

I have not used the default or the else case at all.

Thanks for the reply.

Praveen.

Former Member
0 Kudos

Looks like you haven't sequenced your actions properly.

I would request you to provide a step by step sequential flow of your transaction.

Former Member
0 Kudos

Hi,

Sorry for the late reply.

We made changes in the design and now, we are not using switch.

But I still wonder, why the switch was not executing as expected.

I will look into the code anyway.

Thanks for the reply.

Praveen.