CA Service Management

  • 1.  How modify Description in list_alg

    Posted Mar 21, 2017 05:53 PM

    Hi

     

    I need help with this 

     

    i need to put the  description field  from the object alg  in a notification  at the moment to change the status  appears the window  and the field  , i tried with :

    call_req_id.act_log.description 

    call_req_id.action_desc.description

    call_req_id.act_log_all.description

     

    But the field still without appears , please help me if you know how put this ,i will be very grateful

     

    Regards



  • 2.  Re: How modify Description in list_alg

    Posted Mar 22, 2017 12:27 AM

    Hi,

    the only way to fetch information from factory linked with main object as BREL (many to many relation) and use it in notification - is to use sequence number, example:

    @{call_req.act_log.0.description}

    this will fetch description from the first record but if you need to get info for specific Activity Log you can use this workaround:How to pass BREL value to notification 

     

    For example, if you want to pass description from the latest Resolutin activity, you need to create maj file with followed code:

    OBJECT alg {
         FACTORY {
              DOMSET alg_re_list "time_stamp asc" DYNAMIC {
                   WHERE "type = 'RE'";
              };
         };
    };

    OBJECT cr {
         ATTRIBUTES Call_Req {
              z_alg_re_list BREL alg call_req_id DYNAMIC { DOMSET alg_re_list; };
         };
    };

    Notification code will be:

    @{call_req_id.z_alg_re_list.0.description}

     

    Please notice, this code is provided as example and wasn't not tested. Use any SPEL customization at your own risk.

     

    Best regards,

    cdtj



  • 3.  Re: How modify Description in list_alg

    Posted Mar 22, 2017 05:18 AM

    Nice work around

     

    BTW for Christian.

    As the alg factory is already sorting descending, the first example provided to you by cdtj Champion will return you the last activity performed. Mostly the one you want to have in your notification.

    /J



  • 4.  Re: How modify Description in list_alg

    Posted Mar 22, 2017 01:57 AM

    Hi Christian,

     

    What type of the log do you want to trigger the notification, in cdtj example, he is using resolve activity log.

    You can configure activity notification 'Resolve'  and add notification rules for it. That should able to use both variable from itself (alg) and its parent (call_req).

     

    For example:

    alg_desc: @{description}
    call_req_desc: @{call_req_id.description}

     

    The down side is that every time the resolved activity is logged, this will be triggered.

     

    Best regards,

    Conan