Building an Administration UI with the BPM API 
With the Business Process Management (BPM) application programming interfaces (APIs), you can customize and enhance the way you use business processes and execute tasks.
This document describes how you use the BPM APIs to build your administration UI.
For a detailed description of the BPM public APIs, see http://help.sap.com/javadocs/.
You have added the necessary dependencies to development component tc/bpem/facade/ear (public part api) in software component BPEM-FACADE.
Get process definition.
Returns the ProcessDefinition of the ProcessInstance specified by the given id.
Syntax
ProcessDefinition getProcessDefintion(URI processInstanceId)throws BPMException
Get running process instances.
Returns a Set of the running ProcessInstances of the given ProcessDefintion.
Syntax
Set<ProcessInstance> getRunningProcessInstances(URI processDefinition)throws BPMException
Generate process visualization URL.
Returns an absolute URL to the Process Visualization for the given process instance ID.
Syntax
URL generateProcessInstanceVisualizationURL(URI processInstanceId)throws BPMException
Get task abstract by parent.
Returns the set of instances of TaskAbstract for a given process instance.
Syntax
Set<TaskAbstract> getTaskAbstractsByParent(URI processInstanceId,Set<Status> statuses)throws BPMException
Nominate.
Triggers the nominate task action.
Syntax
void nominate(URI taskInstanceId,IUser newOwner)throws BPMException
Set priority.
Sets the priority of the given task to a new value.
Syntax
void setPriority(URI taskInstanceId,Priority prioriy)throws BPMException
Get process instance for task instance ID.
Returns the parent process instance for the given task instance ID.
Syntax
ProcessInstance getProcessInstanceForTaskInstanceId(URI taskInstanceId)throws BPMException