lambda_appian_internal

Hi,

I am searching the usage of lambda_appian_internal() function.

I have not used it earlier and any insights would be helpful on this.

 

Thanks 

Rohini

  Discussion posts and replies are publicly visible

Parents
  • Hi Rohini,

    lambda_appian_internal is similar to lambda expressions in java.

    In my case it helped me to create a dictionary in a single rule.Here i am attaching the simple example to understand the functionality.

     

    load(
    local!employeeDetails:{
    {id:1,firstName:"A",lastName:"B"},
    {id:2,firstName:"P",lastName:"Q"},
    {id:3,firstName:"X",lastName:"Y"}
    },

    local!callLambdaFunction:lambda_appian_internal(
    ri!details,
    {
    id:tointeger(index(ri!details,"id",0))+1,
    name:concat(index(ri!details,"firstName",null)
    ," ",index(ri!details,"lastName",null))
    }
    ),
    a!forEach(
    local!employeeDetails,
    local!callLambdaFunction(fv!item)
    )

    )

     

    Let me know if you need further help on this.

     

    Thanks

    Dharmendra

Reply
  • Hi Rohini,

    lambda_appian_internal is similar to lambda expressions in java.

    In my case it helped me to create a dictionary in a single rule.Here i am attaching the simple example to understand the functionality.

     

    load(
    local!employeeDetails:{
    {id:1,firstName:"A",lastName:"B"},
    {id:2,firstName:"P",lastName:"Q"},
    {id:3,firstName:"X",lastName:"Y"}
    },

    local!callLambdaFunction:lambda_appian_internal(
    ri!details,
    {
    id:tointeger(index(ri!details,"id",0))+1,
    name:concat(index(ri!details,"firstName",null)
    ," ",index(ri!details,"lastName",null))
    }
    ),
    a!forEach(
    local!employeeDetails,
    local!callLambdaFunction(fv!item)
    )

    )

     

    Let me know if you need further help on this.

     

    Thanks

    Dharmendra

Children