CA Service Management

Expand all | Collapse all

How can you pull the group of the log_agent to use as part of an Atomic Condition?

  • 1.  How can you pull the group of the log_agent to use as part of an Atomic Condition?

    Posted Jun 03, 2017 01:39 PM

    What we are trying to do is have a Multi-Notification rule triggered to the Help Desk and NOC when a group outside of these two creates a high priority incident.  I have tried referencing it multiple ways as an Activity Association object but I can't seem to get the Object Type Attribute syntax correct.

    Some that I have tried:

     

    log_agent.Contact.Group_Member.Group

    log_agent.Group.Contact

    log_agent.Contact.Group



  • 2.  Re: How can you pull the group of the log_agent to use as part of an Atomic Condition?

    Posted Jun 05, 2017 03:21 AM

    Hi,
    as the conditions are interpreted by SPEL, there is no way to specify group using dot concatenation.

    The only way to achieve this using condition - is to define it manually using form editor or pdm_load functionality, condition code could be:

     

    send_wait(0, top_object(), "call_attr", "grpmem", "sync_fetch", "STATIC", format("member = U'%s' AND group = U'<group_uuid_here>'", log_agent), -1, 0);
    if (msg[1] == 0) {
         // not a group member
         set_return_data(FALSE);
    } else {
         set_return_data(TRUE);
    }

    Regards,

    cdtj