on 06-12-2007 10:31 AM
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.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.