cancel
Showing results for 
Search instead for 
Did you mean: 

Generating Report on currently running GP Processes

Former Member
0 Kudos

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.

Accepted Solutions (1)

Accepted Solutions (1)

former_member4529
Active Contributor
0 Kudos

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>

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

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

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

Answers (0)