cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Compare Memory with user Input

openrico
Participant
0 Likes
880

Dear Professionals,

I have the following usecase: In an action, I ask an user for an orderID. With this orderID I make a webservice call and get some information(e.g. vendorID) which I store in memory.

Now the question: I want to ask the customer about his vendorID and compare this input with the vendorID stored in the memory to make further actions.

How can I achieve this?

Thank you very much.

Greetings

Enrico

Accepted Solutions (1)

Accepted Solutions (1)

timothy_janssen
Advisor
Advisor

Hey Enrico,

It depends on what you want to accomplish - there are a few options:

1. If you want to only accept the vendorID that matches the one saved in memory, you could use a validator during the requirement filling step (how I assume you are asking the user for the vendorID)

2. In skill action conditions, you can define something like #vendorID.raw comparison_opporator {{memory.saved_vendorID}} and then execute an action based on the comparison.

3. Using scripting syntax you can define a wide variety of comparisons/actions based on the comparison of the IDs. You can find more info here.

If you describe your use case in depth, I am happy to discuss what might be the best approach for you.

Hope that helps!

openrico
Participant
0 Likes

Thanks. I used your scripting approach. And used the #compare...

Answers (0)