How to write an expression rule that returns multiple values?

How to write an expression rule that returns multiple values? Would you share an example?

  Discussion posts and replies are publicly visible

Parents
  • Just an aside...in a future release of Appian you'll be able to return data in 'map' format (this is already generated from a Decision Rule if you have multiple outputs of different data types) but you'll have access to the a!map() function natively, as per the following example:

    a!map(
      myInteger: 99,
      myString: "Ipsum Lorem",
      myDecimal: 3.14159,
      myBoolean: true,
      myIntegerList: {3,5,7,9}
    )

    The above code returns the following output:

    This will bust the current limitation where Expression Rules can only return one 'type' of data as their final result.

Reply
  • Just an aside...in a future release of Appian you'll be able to return data in 'map' format (this is already generated from a Decision Rule if you have multiple outputs of different data types) but you'll have access to the a!map() function natively, as per the following example:

    a!map(
      myInteger: 99,
      myString: "Ipsum Lorem",
      myDecimal: 3.14159,
      myBoolean: true,
      myIntegerList: {3,5,7,9}
    )

    The above code returns the following output:

    This will bust the current limitation where Expression Rules can only return one 'type' of data as their final result.

Children