Clarity

  • 1.  Step Validation takes long time to execute

    Posted Jun 26, 2014 10:39 AM

    Hello friends! I'm testing a short workflow for the idea object where I need the workflow to continue to the next step when the idea status is equal to 'Converted'. After the idea is converted then the process blocks all the fields.

     

    The process takes 20minutes to execute this step. It takkes 20 minutes from the moment we click on the 'Convert' button to see the fields blocks.

     

    I don't think it's a complex steps as to take so much time. I would appreciate if you could leave me some advices on what to check or if this kind of validation is a bad practice.

     

    Thanks a lot!

    Flo



  • 2.  Re: Step Validation takes long time to execute

    Posted Jun 26, 2014 10:49 AM

    "the process blocks all the fields" - why would you block all the fields ?

     

    I would suggest that you block only the needed ones.

     

    Also, please login a case with support (along with the logs) so they can provide a solution to counter this.

     

    NJ



  • 3.  Re: Step Validation takes long time to execute

    Posted Jun 26, 2014 10:51 AM

    Thanks. It blocks all the fields because customer wants the Idea not to be modified by anyone after being converted to project.

     

    Regards!

    Flo



  • 4.  Re: Step Validation takes long time to execute

    Broadcom Employee
    Posted Jun 26, 2014 11:07 AM

    Hi,

     

    When I see these kinds of delays in processes, the first thing I would try is simply restarting the bg service to see if the problem goes away or not.

     

    If the problem goes away permanently great!  But if it remains or comes back again, the cause is usually a problem with multicast of some sort that prevents the messaging for processes from working properly.

     

    Like NJ said, open a case with support if restarting your bg service does not fix the problem.

     

    Jeanne Gaskill

    Senior Support Engineer

    Clarity



  • 5.  Re: Step Validation takes long time to execute

    Posted Jun 26, 2014 11:12 AM

    Hi Jeanne,

     

    Thanks for your advice. We already restarted services but it did not fix the issue.

     

    For the moment we solve it by setting the status through a system action. This way the system sets the 'converted' status and then it continues to the next step and block the idea.

     

    Customer is having some problems with the BG service lately (and we are working on it with Support) so I think it might be all associated. I was some kind confused because the other processes are working fine and in a timely manner.

     

    Anyway, I wanted to post my question here to gather more points of views and advices. Thanks for stopping by.

     

    Regards!

    Flo



  • 6.  Re: Step Validation takes long time to execute

    Posted Jun 26, 2014 11:13 AM

    For process, have you checked for the orphaned records ?

     

    NJ



  • 7.  Re: Step Validation takes long time to execute

    Posted Jun 26, 2014 11:15 AM

    No I haven't. Please tell me how I do that. Thanks!



  • 8.  Re: Step Validation takes long time to execute

    Posted Jun 26, 2014 11:20 AM

    There are queries to check and delete the orphaned records -

     

    The following query can provide a count of the orphans in the system.

    */

    select count(*) from cmn_sec_assgnd_obj_perm

    where object_instance_id IN (

    select object_instance_id from cmn_sec_assgnd_obj_perm p

    where p.object_ID = 50680

    minus

    select ID from BPM_RUN_PROCESSES);

    /*

     

    The following PLSQL block can batch the deletes for these orphans at 100,000 rows at a time if they are significant.

    */

     

    -- BPM_RUN_PROCESSES CLEANUP

    LOOP

    Delete from cmn_sec_assgnd_obj_perm

    where object_ID = 50680

    and object_instance_id IN (

    select object_instance_id from cmn_sec_assgnd_obj_perm p

    where p.object_ID = 50680

    minus

    select ID from BPM_RUN_PROCESSES)

    AND ROWNUM <= 100000;

    EXIT WHEN SQL%ROWCOUNT = 0;

    COMMIT;

    END LOOP;

     

    NJ



  • 9.  Re: Step Validation takes long time to execute

    Posted Jun 26, 2014 12:03 PM

    Thanks a lot NJ! I'll try that!

     

    Regards

    Flo



  • 10.  Re: Step Validation takes long time to execute

    Posted Jun 26, 2014 12:06 PM

    Welcome

     

    "Customer is having some problems with the BG service lately (and we are working on it with Support)" - if you can share the details and the solution, would help the community.

     

    Thanks

    NJ



  • 11.  Re: Step Validation takes long time to execute

    Posted Jun 26, 2014 12:20 PM

    Sure!

     

    Currently we don't have the problem identified. We are monitoring the memory consumption on the server. The only error we see on the bg log is an OUTOFMEMORY error, before the time the bg stops working.

     

    We have increase java app and java bg, but after some days bg stops again.

     

    Will create a new post once we have more info and a solution.

     

    Regards

    Flo