Workflow Soluiton

 View Only
Expand all | Collapse all

In which component the ProcessID is setup as IM,CM,KM,PM ?How it is getting incremented by one number?How it can be customized to different name?

  • 1.  In which component the ProcessID is setup as IM,CM,KM,PM ?How it is getting incremented by one number?How it can be customized to different name?

    Posted May 20, 2014 10:34 AM


  • 2.  RE: In which component the ProcessID is setup as IM,CM,KM,PM ?How it is getting incremented by one number?How it can be customized to different name?

    Posted May 20, 2014 11:36 AM

    That should be the Messaging tab in Project Properties



  • 3.  RE: In which component the ProcessID is setup as IM,CM,KM,PM ?How it is getting incremented by one number?How it can be customized to different name?

    Posted May 21, 2014 08:59 AM

    Reecardo is right, of course. Additionally, the incrementing happens by adding 1 to the LastUsedIdentity column for the corresponding process type (e.g., "IM-") in the ReportProcessGenerator table.



  • 4.  RE: In which component the ProcessID is setup as IM,CM,KM,PM ?How it is getting incremented by one number?How it can be customized to different name?

    Broadcom Employee
    Posted May 21, 2014 12:28 PM

    The component that actually creates the ProcessID for any process is the Global Logging Capture component. If this component exists and is enabled in a project when the project is executed it will generate a ProcessID and put an entry in ReportProcess.

    If you go into the Project settings of your project and look at the Reporting tab you will see an option called Process Prefix. This value is set to WF- or WE- by default. Along with this value you will find a Pad Char & Pad length option to control how many characters should be padded after the prefix and what character to use. 

    When the project is ran for the first time, either thru debug or published, the Global Logging Capture component will look in the ReportProcessGenerator table for an entry matching your defined Process Prefix. If the entry exists it will increment the LastUsedIdentity field by 1 value and create a new Process ID with that new number. If no entry exists in the ReportProcessGenerator table for your defined prefix it will create one and use it going forward.

    Hope this information helps you understand how the process works.



  • 5.  RE: In which component the ProcessID is setup as IM,CM,KM,PM ?How it is getting incremented by one number?How it can be customized to different name?

    Posted May 21, 2014 10:11 PM

    Yes I can understand better now.One more thing by default for any workflow this Global Logging Capture component will be added right.If you delete it then it wont generate.

    Moreover I have seen a stored procedure by name SP_GenerateNextReportID which is doing this job.

    Which component is calling this SP to generate the reportID?Is it the same Global Logging Capture?