Hi , State machine sample program output is not working as expected

I am trying sample program with state machine.Unable to get the output from the different transition states, always showing the output from the final state.



Hi @Parameswari

Could you please share the workflow with us in the zip file, so that we can verify the possible cause?

Best Regards.

Hi @arjunshenoy

Pls check it.

Test.xaml (21.7 KB)

Thanks

@Parameswari

Please check this…The issue is because you are not assigning true to choice variable in the else condition…Once that is assigned it is going through other transitions also…as if it is not assigned as true default value of choice will be false and the first transition of end state is getting executed

Everything else is perfect

Test.xaml (22.8 KB)

cheers

@Parameswari

This is happening because the was you have designed the ‘Allow Transition’ & ‘Denial Transition’ conditions.

Even if you choose the option 4 from the dropdown, the product value will be still either greater or lesser than the available amount, which is driving the control wrong.

→ For both ‘Allow’ & ‘Denial’ transition condition, please add another condition clause like this:

image

Hope this helps,
Best Regards.

Thanks @Anil_G

1 Like

Thanks for the suggestion @arjunshenoy

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.