How to view all the processinstance and worklist items by k2mng?

Last post 09-10-2008, 1:29 AM by karonwu. 2 replies.
Sort Posts: Previous Next
  •  07-15-2008, 7:26 PM 24876

    How to view all the processinstance and worklist items by k2mng?

    hi

    I'm a new k2 user. May be my question is silly. I want to view all the processinstance and worklist items like k2 workspace by k2mng.

    But according to my code, I can only see the current "active" ProcessInstances...

    Many thanks...

      k2man.Login("k2devsvr", 5252)
            oProcessInstances = k2man.GetProcessInstancesAll("SCCMSF\SCCMSF_Main")

            Dim row As DataRow
            Dim dt As New DataTable
            dt.Columns.Add("FOLIO")
            dt.Columns.Add("ProcID")
            dt.Columns.Add("Fullname")
            For Each oProcessInstance As ProcessInstance In oProcessInstances
                row = dt.NewRow()
                row(0) = oProcessInstance.Folio
                row(1) = oProcessInstance.ID
                row(2) = oProcessInstance.ProcSetFullName

                dt.Rows.Add(row)

    Next

  •  07-16-2008, 5:48 AM 24896 in reply to 24876

    Re: How to view all the processinstance and worklist items by k2mng?

    Hi,

    Using K2mng you will only be able to see active (running, error, active) process instances, but not completed process instanced. If you want a view of ALL process instances (including completed) then you will have to use reporting (there is a reporting WS in 2003) or in BP I think there are some smart objects you can use.

    HTH,

     


    Gerhard
    -----------------------------------------------------------------------------
  •  09-10-2008, 1:29 AM 25991 in reply to 24876

    Re: How to view all the processinstance and worklist items by k2mng?

    you can think k2 service manager is written by K2Mng, no exiting function to get completed process instances.

    For k2 blackpearl, SO and K2 workspace report can be use to do it; for k2.net 2003, we always read k2log db for completed instances.

View as RSS news feed in XML