open id 

HomeRules

Return two Value from rule Messages in this topic - RSS

Jannie
Jannie
Posts: 2


3/10/2023
Jannie
Jannie
Posts: 2
I have a rule, i need to return two value from rule but get only one return type after creating that rule in the flow, i get only one arrow out this rule, i need two return type on returning value from rule. It work fine in the case of true and false return type




0 link
Jamie Hughes
Jamie Hughes
Posts: 7


3/12/2023
Jamie Hughes
Jamie Hughes
Posts: 7
Hi Jannie,

What is the condition to your rule?

If you are just checking that a condition has been met, I would use a 'String Equals - Case Insensitive' step to check this condition (this will give you a true/false outcome) then use two create data steps, one for True that has the DefalutOutputData and a status of 200 and another one for false that has the status of 400.

This way depending on how your criteria is met you will either get the 200 or 400 status.
0 link
Jannie
Jannie
Posts: 2


3/13/2023
Jannie
Jannie
Posts: 2
Hi , Thanks for the info but where i can find this string equals thing , also i creating a rule, so when the rule get true i need return a data and return some data on false case as well
0 link
ethan.price@decisions.com
ethan.price@decisions.com
Administrator
Posts: 64


3/14/2023
ethan.price@decisions.com
ethan.price@decisions.com
Administrator
Posts: 64
Hi Jannie!

The String Equals - Case Insensitive rule is a preconfigured rule that comes with Decisions by default. I've attached some documentation below.

https://documentation.decisions.com/step-library/docs/string-equals-steps

I agree with Jamie's suggestion - rather than trying to get the rule to output a value, we can add Create Data steps to the two output paths, and have them set to output the expected code. The logic would look something like this:



Hope this helps!

-Ethan

Attachments:
Screenshot (758).png
0 link






Powered by Jitbit Forum 8.3.8.0 © 2006-2013 Jitbit Software