|
SAP NetWeaver 7.30 (SP02) Composition Environment | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface TaskInstanceManager
Central access point for getting and manipulating task instances.
NOTE: As this interface can be extended, this interface can be freely used, but must not be implemented.
| Method Summary | |
|---|---|
void |
claim(URI taskInstanceId)
Claims responsibility for the task, i.e. sets the task to status Reserved |
void |
complete(URI taskInstanceId,
commonj.sdo.DataObject taskOutputData)
Completes the execution of the task, i.e. sets the task to status Completed |
void |
fail(URI taskInstanceId,
Fault fault)
Lets the execution of the task fail with the specified fault. |
URL |
generateTaskExecutionUrl(URI taskInstanceId)
Generates the URL pointing to the default Task Execution UI for the specified task instance id. |
Set<TaskAbstract> |
getMyTaskAbstracts(Set<Status> statuses)
Returns the set of instances of TaskAbstract for the logged in user and for the specified task statuses. |
TaskAbstract |
getTaskAbstract(URI taskInstanceId)
Returns an abstract of the task with the given task instance id |
TaskDetail |
getTaskDetail(URI taskInstanceId)
Returns the details of the task with the given task instance id. |
void |
start(URI taskInstanceId)
Starts the execution of the task, i.e. sets the task to status InProgress. |
void |
stop(URI taskInstanceId)
Stops the execution of the task and sets the task status back to Reservered. |
| Method Detail |
|---|
void claim(URI taskInstanceId)
throws BPMException
taskInstanceId -
BPMIllegalArgumentException - if an argument is invalid
BPMIllegalAccessException - if the user is not authorized to perform the operation
BPMIllegalOperationException - if the operation does not apply to the task type
BPMException
void start(URI taskInstanceId)
throws BPMException
taskInstanceId -
BPMIllegalStateException - if the state is invalid
BPMIllegalArgumentException - if an argument is invalid
BPMIllegalAccessException - if the user is not authorized to perform the operation
BPMIllegalOperationException - if the operation does not apply to the task type
BPMException
void stop(URI taskInstanceId)
throws BPMException
taskInstanceId -
BPMIllegalStateException - if the state is invalid
BPMIllegalArgumentException - if an argument is invalid
BPMIllegalAccessException - if the user is not authorized to perform the operation
BPMIllegalOperationException - if the operation does not apply to the task type
BPMException
void complete(URI taskInstanceId,
commonj.sdo.DataObject taskOutputData)
throws BPMException
taskInstanceId - taskOutputData - the output data that will be used to complete the task.BPMIllegalArgumentException.TaskDetail.getOutputDataObject() to get a valid data object.
BPMIllegalStateException - if the state is invalid
BPMIllegalArgumentException - if an argument is invalid
BPMIllegalAccessException - if the user is not authorized to perform the operation
BPMIllegalOperationException - if the operation does not apply to the task type
BPMException
TaskDetail getTaskDetail(URI taskInstanceId)
throws BPMException
taskInstanceId -
IllegalArgumentException - if an argument is invalid
BPMException
TaskAbstract getTaskAbstract(URI taskInstanceId)
throws BPMException
taskInstanceId -
BPMIllegalAccessException - if the user is not authorized to perform the operation
BPMIllegalArgumentException - if an argument is invalid
BPMException
Set<TaskAbstract> getMyTaskAbstracts(Set<Status> statuses)
throws BPMException
TaskAbstract for the logged in user and for the specified task statuses. If null is
provided as argument, the abstracts for the tasks with a valid status are returned.
statuses -
BPMException
void fail(URI taskInstanceId,
Fault fault)
throws BPMException
taskInstanceId - fault - the Fault Object representing the reason why the execution of the task has failed
BPMIllegalAccessException - if the user is not authorized to perform the operation
BPMIllegalArgumentException - if an argument is invalid
BPMException
URL generateTaskExecutionUrl(URI taskInstanceId)
throws BPMException
taskInstanceId -
BPMIllegalArgumentException - if an argument is invalid
BPMServiceException - if a backend-issue occurrs
BPMException| Access Rights |
|---|
| SC | DC | Public Part | ACH |
|---|---|---|---|
[sap.com] BPEM-FACADE
|
[sap.com] tc/bpem/facade/ear
|
-
|
BC-BMT-BPM
|
[sap.com] BPEM-FACADE
|
[sap.com] tc/bpem/facade/ear
|
api
|
BC-BMT-BPM
|
|
SAP NetWeaver 7.30 (SP02) Composition Environment | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||