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?

Parents
  • 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.
Reply
  • 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.
Children
No Data