Skip to Content
author's profile photo Former Member
Former Member

Generating Report on currently running GP Processes

Hi All,

I have a set of GP Processes. Is it possible to generate a report on the currently running GP Processes and find out as to which users are assigned to each task ?

I guess I have to use GP API to achieve the same. Please provide some inputs to the same.

-Thanks,

KN.

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    Posted on Jun 12, 2007 at 01:50 PM

    Hi,

    Yes you have to use the GP public APIs to generate that kind of report. Refer the following links:

    <a href="/people/community.user/blog/2007/04/11/guided-procedures-explorations-process-runtime-dashboard">Guided Procedures Explorations: Process Runtime Dashboard</a>

    <a href="/people/community.user/blog/2007/02/23/guided-procedures-explorations-thoughts-on-service-level-agreement-metrics-150-passive-measures Procedures Explorations: Thoughts on Service Level Agreement Metrics – Passive Measures</a>

    GP" target="_blank">http://help.sap.com/javadocs/NW04S/current/gp/overview-summary.html">GP API Javadoc

    API" target="_blank">http://help.sap.com/saphelp_nw04s/helpdata/en/93/27dc108cfc407fbf6c726151840001/frameset.htm">API Documentation

    A small code snippet to get running processes using GP API:

    IGPRunTimeManager rtm = GPProcessFactory.getRuntimeManager();

    array = rtm.getRunningInstances(0,wdContext.currentInputElement().getStarDate() ,wdContext.currentInputElement().getEndDate(),user);

    }

    catch(Exception e)

    {

    msg.reportException(e.getMessage(), false);

    }

    for (int i=0; i<array.length; i++){

    String instanceId = array<i>.getProcessInstanceID();

    String processdescription = array<i>.getDescription();

    String processTitle = array<i>.getTitle();

    int status = array<i>.getStatus();

    Date processStartDate = array<i>.getStartDate();

    }

    Thanks,

    Dipankar

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.