This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Duplicate Process Identification

Hi Team,

I have a process which is executing twice every time on same object ,how can i include a generating condition if any process is in progress do not generate again?

  • Hi,

    Set this as the gen con for your process:

    Dim f As ISqlFormatter = Connection.SqlFormatter

    Value = Not Connection.Exists("JobQueue", f.Comparison("jobchainname", myChain.Name, ValType.String, CompareOperator.Equal))

    If there's a job in the queue with the same name, another won't generate.

    But you also might want to investigate why you are getting 2 executions.

    HTH, Barry.
  • Hi Barry,

    the process i have written is on person object

    when i add the above condition in the filter,if modify some thing on 2 different person records it is triggering only process.

    in my case

    process gets generated on update of attributes on person record,if there are 2 fields changed process is triggering twice for same user
  • Hi Barry,

    the condition provided by you is executing only once,even if 2 person records have change,can we further drill down to search on which person record process is triggered.

    Thanks,
    Pradeep Pola

  • Hi,

    Yes you can examine the basisobjectkey of the running process that should contain the uid of the person the job is being executed for. Then you would check if the current uid matches that uid or not.

    HTH, B.