Show TOC

Building an Administration UI with the BPM APILocate this document in the navigation structure

Prerequisites

You have added the necessary dependencies to development component tc/bpem/facade/ear (public part api) in software component BPEM-FACADE .

Context

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.

Procedure

  1. Get process definition.

    Returns the ProcessDefinition of the ProcessInstance specified by the given id.

    ProcessDefinition getProcessDefintion(URI processInstanceId)throws BPMException
                   
  2. Get running process instances.

    Returns a Set of the running ProcessInstances of the given ProcessDefintion.

    Set<ProcessInstance> getRunningProcessInstances(URI processDefinition)throws BPMException
                   
  3. Generate process visualization URL.

    Returns an absolute URL to the Process Visualization for the given process instance ID.

    URL generateProcessInstanceVisualizationURL(URI processInstanceId)throws BPMException
                   
  4. Get task abstract by parent.

    Returns the set of instances of TaskAbstract for a given process instance.

    Set<TaskAbstract> getTaskAbstractsByParent(URI processInstanceId,Set<Status> statuses)throws BPMException
                   
  5. Nominate.

    Triggers the nominate task action.

    void nominate(URI taskInstanceId,IUser newOwner)throws BPMException
                   
  6. Set priority.

    Sets the priority of the given task to a new value.

    void setPriority(URI taskInstanceId,Priority prioriy)throws BPMException
                   
  7. Get process instance for task instance ID.

    Returns the parent process instance for the given task instance ID.

    ProcessInstance getProcessInstanceForTaskInstanceId(URI taskInstanceId)throws BPMException