Related to function..

Certified Senior Developer

I am just looking at this rule and find this unsupported function can anyone tell me that what is the behaviour of this function .

reduce(
update_unsupported(_,_,_),
{},
{}
)

what we can use instead of update_unsupported to remove (_,_,_)

  Discussion posts and replies are publicly visible

Parents
  • 0
    Certified Lead Developer

    We'd need more context - where was this found and what does it seem to be doing?  I haven't seen it myself, but there's a chance it could be a reference to a pre-publication version of something like a!update(), which was only released relatively recently (in the long run).  But without more context it's hard to say.

  • 0
    Certified Senior Developer
    in reply to Mike Schmitt

    I am trying to replace this function , Currently i am reducing and merging the dictionary data, so i just want to know what i can do better

    reduce(
    update_unsupported(_,_,_),
    cast(
    'type!{urn:com:appian:types}TSW_Resident',
    rule!TSW_getResidentByYardiID("t0020328")
    ),
    merge(
    {
    "ResidentYardiID",
    "PropertyYardiID",
    "Email",
    "FirstName",
    "HomeNumber",
    "LastName",
    "LeaseEndDate",
    "LeaseStartDate",
    "MobileNumber",
    "OfficeNumber",
    "Status",
    "ReasonForMoveOut",
    "MoveInDate",
    "MoveOutDate",
    "CreateDate",
    "CreateUser",
    "UpdateDate",
    "UpdateUser",
    },
    {
    "dd",
    "dd",
    "dd",
    "dd",
    "dd",
    "ss",
    "aa",
    "fff",
    "ff",
    "ff",
    "ff",
    "ff",
    "sss",
    "ff",
    now(),
    null,
    now(),
    null
    }
    ),
    )

Reply
  • 0
    Certified Senior Developer
    in reply to Mike Schmitt

    I am trying to replace this function , Currently i am reducing and merging the dictionary data, so i just want to know what i can do better

    reduce(
    update_unsupported(_,_,_),
    cast(
    'type!{urn:com:appian:types}TSW_Resident',
    rule!TSW_getResidentByYardiID("t0020328")
    ),
    merge(
    {
    "ResidentYardiID",
    "PropertyYardiID",
    "Email",
    "FirstName",
    "HomeNumber",
    "LastName",
    "LeaseEndDate",
    "LeaseStartDate",
    "MobileNumber",
    "OfficeNumber",
    "Status",
    "ReasonForMoveOut",
    "MoveInDate",
    "MoveOutDate",
    "CreateDate",
    "CreateUser",
    "UpdateDate",
    "UpdateUser",
    },
    {
    "dd",
    "dd",
    "dd",
    "dd",
    "dd",
    "ss",
    "aa",
    "fff",
    "ff",
    "ff",
    "ff",
    "ff",
    "sss",
    "ff",
    now(),
    null,
    now(),
    null
    }
    ),
    )

Children