|
SAP NetWeaver 7.11 (EhP1 SP02) Composition Environment | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IGPRuntimeManager
| Method Summary | |
|---|---|
void |
addRuntimeDefinedUserToRole(IGPProcessInstance processInstance,
String roleName,
IUser runtimeUser,
IGPUserContext userContext)
This method adds an user to a process role instance during runtime |
void |
changeTaskProcessor(String processInstanceID,
String activityInstanceID,
IGPUserContext actualProcessor,
IGPUserContext newProcessor)
Delegates the given activity in given process from actualProcessor to |
void |
completeAction(IGPActionCompletionData actionCompletionData)
|
IGPActionCompletionData |
createActionCompletionData(String processInstanceID,
String actionInstanceID,
IUser user)
Deprecated. |
IGPProcessRoleInstanceList |
createProcesRoleInstanceList()
Deprecated. This method creates an initial IGPProcessRoleInstanceList needed for starting a process. |
IGPProcessRoleInstanceList |
createProcessRoleInstanceList()
This method creates an initial IGPProcessRoleInstanceList needed for starting a process. |
IGPActionInstance |
getActionInstance(String processId,
String actionId,
IUser user)
Deprecated. Returns the action instance information for the given parameters. |
IGPProcessInfo[] |
getActiveProcessTemplatesByCategory(String categoryId,
IUser user)
Deprecated. Returns information for all active process templates. |
IGPRuntimeAttachmentList |
getAttachmentList(String processInstanceID,
String activityInstanceID,
IUser user)
Returns the list of attachments associated with a given activity in a given process instance. |
IGPBlockInstance |
getBlockInstance(String processId,
String blockId,
IUser user)
Deprecated. Returns the block instance information for the given parameters. |
IGPProcessInstanceInfo[] |
getCompletedInstances(GPSearchRole searchRole,
Date startDate,
Date endDate,
IGPUserContext userContext)
Returns information for completed process instances for the specified parameters. |
IGPProcessInstanceInfo[] |
getCompletedInstances(int searchRole,
Date startDate,
Date endDate,
IUser user)
Deprecated. Returns information for completed process instances for the specified parameters. |
Iterator |
getCurrentWorkItems(String processInstanceId,
IGPUserContext userContext)
|
IGPProcessInstanceInfo[] |
getErroneousInstances(GPSearchRole searchRole,
Date startDate,
Date endDate,
IGPUserContext userContext)
Returns information for erroneous process instances for the specified parameters. |
IGPProcessInstance |
getProcessInstance(IGPProcessInstanceInfo processInstanceInfo,
IUser user)
Deprecated. Returns the process instance for a process instance info object (e.g. click on list of processes to jump into one special process) |
IGPProcessInstance |
getProcessInstance(String processId,
IUser user)
Deprecated. Returns the process instance information for the given parameters. |
IGPProcessInstanceInfo |
getProcessInstanceInformation(String processInstanceID,
IUser user)
Returns one IGPProcessInstanceInfo object which is identified by the process Id, and it is unique to the process. |
IGPProcessInstanceInfo[] |
getRunningInstances(GPSearchRole searchRole,
Date startDate,
Date endDate,
IGPUserContext userContext)
Returns information for running process instances for the specified parameters. |
IGPProcessInstanceInfo[] |
getRunningInstances(int searchRole,
Date startDate,
Date endDate,
IUser user)
Deprecated. Returns information for running process instances for the specified parameters. |
IGPWorkItem[] |
getWorkItems(GPWorkItemStatus status,
IGPUserContext userContext)
Returns the workitems with a given status for a given user. |
IGPWorkItem[] |
getWorkItems(int status,
IUser user)
Deprecated. Returns information for workitems with a given status for a given user. |
void |
persistAttachmentList(String processInstanceID,
String activityInstanceID,
IGPRuntimeAttachmentList attachments,
IUser user)
Saves the given list of attachments for the given activity and process instance and returns it. |
void |
removeTaskProcessor(String processInstanceID,
String activityInstanceID,
IGPUserContext currentProcessor)
Removes a user as processor of a workitem. |
void |
setCustomProcessTitle(String processInstanceID,
String title)
The custom process title of a running process can be reset. |
IGPProcessInstance |
startProcess(IGPProcess processTemplate,
String userProvidedName,
String userProvidedDescription,
IUser initiator,
IGPProcessRoleInstanceList processRoleInstanceList,
IGPStructure startStructure,
IUser user)
|
IGPProcessInstance |
stopProcess(IGPProcessInstance processInstance,
IUser user)
Deprecated. Stops a running process. |
| Method Detail |
|---|
IGPProcessRoleInstanceList createProcesRoleInstanceList()
IGPProcessRoleInstanceList createProcessRoleInstanceList()
IGPProcessInstance startProcess(IGPProcess processTemplate,
String userProvidedName,
String userProvidedDescription,
IUser initiator,
IGPProcessRoleInstanceList processRoleInstanceList,
IGPStructure startStructure,
IUser user)
throws GPEngineException,
GPInvocationException
processTemplate - userProvidedName - userProvidedDescription - initiator - processRoleInstanceList - startStructure - user -
GPEngineException
GPInvocationException
IGPProcessInstance stopProcess(IGPProcessInstance processInstance,
IUser user)
throws GPEngineException,
GPInvocationException
processInstance - NOT NULLuser - NOT NULL
GPEngineException
GPInvocationException
void addRuntimeDefinedUserToRole(IGPProcessInstance processInstance,
String roleName,
IUser runtimeUser,
IGPUserContext userContext)
throws GPEngineException,
GPInvocationException
processInstance - NOT NULLroleName - NOT NULLruntimeUser - NOT NULLuserContext - NOT NULL
GPEngineException
GPInvocationException
void setCustomProcessTitle(String processInstanceID,
String title)
throws GPEngineException,
GPInvocationException
processInstanceID - NOT NULLtitle -
GPEngineException
GPInvocationException
void completeAction(IGPActionCompletionData actionCompletionData)
throws GPEngineException,
GPInvocationException
actionCompletionData -
GPEngineException
GPInvocationException
IGPActionCompletionData createActionCompletionData(String processInstanceID,
String actionInstanceID,
IUser user)
throws GPEngineException,
GPInvocationException
processInstanceID - NOT NULLactionInstanceID - NOT NULLuser - NOT NULL
GPEngineException
GPInvocationException
IGPProcessInstance getProcessInstance(IGPProcessInstanceInfo processInstanceInfo,
IUser user)
throws GPEngineException,
GPInvocationException
processInstanceInfo - NOT NULLuser - NOT NULL
GPEngineException
GPInvocationException
IGPActionInstance getActionInstance(String processId,
String actionId,
IUser user)
throws GPEngineException,
GPInvocationException
processId - String NOT NULLactionId - String NOT NULLuser - IUser NOT NULL
ProcessInformationException
GPEngineException
GPInvocationException
IGPBlockInstance getBlockInstance(String processId,
String blockId,
IUser user)
throws GPEngineException,
GPInvocationException
processId - String NOT NULLblockId - String NOT NULLuser - IUser NOT NULL
ProcessInformationException
GPEngineException
GPInvocationException
IGPProcessInstance getProcessInstance(String processId,
IUser user)
throws GPEngineException,
GPInvocationException
processId - String NOT NULLuser - IUser NOT NULL
ProcessInformationException
GPEngineException
GPInvocationException
IGPProcessInfo[] getActiveProcessTemplatesByCategory(String categoryId,
IUser user)
throws GPEngineException,
GPInvocationException
categoryId - user - IUser NOT NULL
ProcessReportingException
GPEngineException
GPInvocationException
IGPProcessInstanceInfo[] getRunningInstances(int searchRole,
Date startDate,
Date endDate,
IUser user)
throws GPEngineException,
GPInvocationException
searchRole - - one of the constants in com.sap.caf.eu.gp.process.api.ISearchRolesInformationstartDate - endDate - user - IUser NOT NULL
ProcessReportingException
GPEngineException
GPInvocationException
IGPProcessInstanceInfo[] getRunningInstances(GPSearchRole searchRole,
Date startDate,
Date endDate,
IGPUserContext userContext)
throws GPEngineException,
GPInvocationException
searchRole - - one of the constants of GPSearchRole.SEARCH_ROLE_*startDate - - NOT NULL or endDate is NOT NULLendDate - - NOT NULL or startDate is NOT NULLuserContext - IGPUserContext NOT NULL
ProcessReportingException - - You will get a ProcessReportingException, if startDate and endDate is NULL or user is null
GPEngineException
GPInvocationException
IGPProcessInstanceInfo[] getErroneousInstances(GPSearchRole searchRole,
Date startDate,
Date endDate,
IGPUserContext userContext)
throws GPEngineException,
GPInvocationException
searchRole - - one of the constants of GPSearchRole.SEARCH_ROLE_*startDate - - NOT NULL or endDate is NOT NULLendDate - - NOT NULL or startDate is NOT NULLuserContext - IGPUserContext NOT NULL
ProcessReportingException - - You will get a ProcessReportingException, if startDate and endDate is NULL or user is null
GPEngineException
GPInvocationException
IGPProcessInstanceInfo[] getCompletedInstances(int searchRole,
Date startDate,
Date endDate,
IUser user)
throws GPEngineException,
GPInvocationException
searchRole - - one of the constants in com.sap.caf.eu.gp.process.api.ISearchRolesInformationstartDate - endDate - user - IUser NOT NULL
ProcessReportingException
GPEngineException
GPInvocationException
IGPProcessInstanceInfo[] getCompletedInstances(GPSearchRole searchRole,
Date startDate,
Date endDate,
IGPUserContext userContext)
throws GPEngineException,
GPInvocationException
searchRole - - one of the constants of GPSearchRole.SEARCH_ROLE_*startDate - - NOT NULL or endDate is NOT NULLendDate - - NOT NULL or startDate is NOT NULLuserContext - IGPUserContext NOT NULL
ProcessReportingException - - You will get a ProcessReportingException, if startDate and endDate is NULL or user is null
GPEngineException
GPInvocationException
IGPProcessInstanceInfo getProcessInstanceInformation(String processInstanceID,
IUser user)
throws GPEngineException,
GPInvocationException
processInstanceID - --the Id of the process instanceuser - -- the user who wants to retrieve this information
GPEngineException - -- if something went wrong when communicatong with the database
GPInvocationException - -- if there is some problem with the processInstanceId. (invalid)
IGPWorkItem[] getWorkItems(int status,
IUser user)
throws GPEngineException,
GPInvocationException
status - user - IUser NOT NULL
ProcessReportingException
GPEngineException
GPInvocationException
IGPWorkItem[] getWorkItems(GPWorkItemStatus status,
IGPUserContext userContext)
throws GPEngineException,
GPInvocationException
status - NOT NULL - one of the constants in com.sap.caf.eu.gp.process.api.GPWorkItemStatususerContext - IGPUserContext NOT NULL
ProcessReportingException
GPEngineException
GPInvocationException
Iterator getCurrentWorkItems(String processInstanceId,
IGPUserContext userContext)
throws GPEngineException,
GPInvocationException
GPEngineException
GPInvocationException
IGPRuntimeAttachmentList getAttachmentList(String processInstanceID,
String activityInstanceID,
IUser user)
throws GPEngineException,
GPInvocationException
If the activityInstanceID is null, retrieve the attachments of
the process instance only. Otherwise, retrieve the attachment list of the activity instance.
processInstanceID - process instance idactivityInstanceID - activity instance id, can be nulluser - user
GPEngineException - in case of internal error
GPInvocationException - in case of invalid arguments
void persistAttachmentList(String processInstanceID,
String activityInstanceID,
IGPRuntimeAttachmentList attachments,
IUser user)
throws GPEngineException,
GPInvocationException
If the activityInstanceID is null, persist the attachments of
the process instance only. Otherwise, persist the attachment list of the activity instance.
processInstanceID - process instance idactivityInstanceID - activity instance id, can be null in case ofattachments - modified run time attachment listuser - user
GPEngineException - in case of internal error
GPInvocationException - in case of invalid arguments
void changeTaskProcessor(String processInstanceID,
String activityInstanceID,
IGPUserContext actualProcessor,
IGPUserContext newProcessor)
throws GPEngineException,
GPInvocationException
actualProcessor to
If the actualProcessor is null:
- if there are more then one user assigned to the activity, a GPInvocationException is thrown
- if there is only one user assigned to the activity, it will be changed
processInstanceID - process instance idactivityInstanceID - activity instance idactualProcessor - user who is assigned to the activity, can be nullnewProcessor - user who will take over the activity
GPEngineException - in case of internal error
GPInvocationException - in case of invalid arguments
void removeTaskProcessor(String processInstanceID,
String activityInstanceID,
IGPUserContext currentProcessor)
throws GPEngineException,
GPInvocationException
A user can only be removed as processor if there are also other processors assigned. If the user is the only processor of this workitem an exception will be thrown.
processInstanceID - process instance idactivityInstanceID - activity instance idcurrentProcessor - user who is currently assigned to the activity
GPEngineException - in case of internal error
GPInvocationException - in case of invalid arguments
|
SAP NetWeaver 7.11 (EhP1 SP02) Composition Environment | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||