Returns an array of all the definitions that have instances in the system. This includes definitions that have only completed or terminated/suspended instances. Each array element is a ProcessDefinitionDescriptor, rather than an entire process definition.
public ProcessDefinitionDescriptor[] getRunningDefinitions() throws PMServiceException
None
An array of Process Definition Descriptors
PMServiceException
Returns the status of a process.
public java.lang.String getStatus(java.lang.String processid) throws PMServiceException
|
Parameter |
Type |
Description |
|
processid |
string |
Identifies the process instance ID |
The status of the specified process instance as string
PMServiceException
Returns the status code of a process. The possible status codes are:
public java.lang.String getStatusCode(java.lang.String processid) throws PMServiceException
|
Parameter |
Type |
Description |
|
processid |
string |
Identifies the process instance ID |
A process status as string for numeric value
PMServiceException
Checks if the current user has a permission on a selected definition. Valid definition permissions are:
public boolean hasDefinitionPermission(java.lang.String permissionName,java.lang.String definitionId) throws PMServiceException
|
Parameter |
Type |
Description |
|
permissionName |
string |
Identifies the name of the permission to check |
|
definitionId |
string |
Identifies the ID of the process definition to check against |
TRUE if the current user has the selected permission; otherwise, returns FALSE
PMServiceException
Checks if the current user has the given global permission. Valid global permission names are:
PD_LOGIN
WL_LOGIN
WM_LOGIN
WL_START_PROCESS
WL_REASSIGN_TASK
AM_VIEW_ACTOR
AM_CREATE_ACTOR
AM_EDIT_ACTOR
AM_DELETE_ACTOR
PM_ACCESS PD_ACCESS
PM_VIEW_CONFIGURATION
PM_EDIT_CONFIGURATION
PM_VIEW_LOG
PM_CLEAR_LOG
PM_ENABLE_LOG
PM_LIST_DEFINITIONS
PM_CREATE_DEFINITION
OM_VIEW_OBJECT
OM_CREATE_OBJECT
OM_EDIT_OBJECT
OM_DELETE_OBJECT
PMON_RUN_REPORT
PMON_CREATE_REPORT
PMON_EDIT_REPORT
PMON_DELETE_REPORT
DT_CREATE_DATATYPE
DT_DELETE_DATATYPE
DT_VIEW_DATATYPE
public boolean hasGlobalPermission(java.lang.String permissionName) throws PMServiceException
|
Parameter |
Type |
Description |
|
permissionName |
string |
Identifies the permission name to check |
TRUE if the current user has this permission; otherwise, returns FALSE
PMServiceException
Checks if the current user has a permission on a given instance. Valid instance permission names are:
public boolean hasInstancePermission(java.lang.String permissionName, java.lang.String instanceId) throws PMServiceException
|
Parameter |
Type |
Description |
|
permissionName |
string |
Identifies the permission name to check |
|
instanceId |
string |
Identifies the process instance ID to check the permission against |
TRUE if the current user has permission; otherwise, returns FALSE
PMServiceException
Returns a boolean flag that indicates if logging is enabled.
public boolean isLoggingEnabled() throws PMServiceException
None
A boolean TRUE if the Process Manager server enabled logging; otherwise, returns FALSE
PMServiceException
Checks if this PMService2 session is still valid.
public boolean isSessionValid() throws PMServiceException
None
A boolean TRUE if the session is valid; otherwise, returns FALSE
PMServiceException
Locks the process definition or process instance identified. The Process Manager maintains the locks in memory.
public void lock(java.lang.String id) throws PMServiceException
|
Parameter |
Type |
Description |
|
ID |
string |
Identifies the process definition ID |
None
PMServiceException
Logs the specified user into the Process Manager. This method is intended to be used in conjunction with session cookies to establish a user session. You must first enable session tracking on your Web services client library before calling this method.
public void logIn(java.lang.String user, java.lang.String password) throws PMServiceException
|
Parameter |
Type |
Description |
|
user |
string |
Identifies the user ID |
|
password |
string |
Identifies the user password |
None
PMServiceException
Logs the specified user into the Process Manager using a token from EIAM. This method is intended to be used in conjunction with session cookies to establish a user session. You must first enable session tracking on your Web services client library before calling this method.
public void loginToken(java.lang.String token) throws PMServiceException
|
Parameter |
Type |
Description |
|
token |
string |
Identifies the EIAM token |
None
PMServiceException
Logs out of the Process Manager session.
public void logOut()
None
None
None
Permanently deletes all process instances created from the specified process definition that started or completed between the specified dates and also the associated data from the STATS table. This is an asynchronous operation that runs in the background.
public void purgeAsynchronouslyForCompletedWithStats (java.lang.String
definitionId
,longfrom
,longto
, booleancompleted, Boolean deleteStats
)throws PMServiceException
|
Parameter |
Type |
Description |
|
definitionID |
string |
Identifies the process definition ID |
|
from |
long |
Identifies the date to which instances should be listed |
|
to |
long |
Identifies the date to which instances should be listed |
|
completed |
Boolean |
Specifies whether this operation should select process instances based on their start date or completion date If false, selects process instances based on the start date. |
|
deleteStats |
Boolean |
Specifies whether this operation should delete the stats table records as part of purge If false, the stats table records are not deleted. |
None
PMServiceException
Permanently deletes all process instances created from the specified process definition that started between the specified dates.
public void purgeInstances(java.lang.String definitionId,long from,long to) throws PMServiceException
|
Parameter |
Type |
Description |
|
definitionId |
string |
Identifies the process definition ID |
|
from |
long |
Identifies the date from which to start listing instances |
|
to |
long |
Identifies the date to which instances should be listed |
None
PMServiceException
Permanently deletes all process instances created from the specified process definition that started or completed between the specified dates. This is an asynchronous operation that runs in the background.
public void purgeInstancesAsynchronously(java.lang.String
definitionId
,longfrom
,longto
, booleancompleted
)throws PMServiceException
|
Parameter |
Type |
Description |
|
definitionID |
string |
Identifies the process definition ID |
|
from |
long |
Identifies the date from which to start listing instances |
|
to |
long |
Identifies the date to which instances should be listed |
|
completed |
Boolean |
Specifies whether this operation should select process instances based on their start or completion date If false, selects process instances based on the start date. |
None
PMServiceException
Permanently deletes all process instances created from the specified process definition that started or completed between the specified dates.
public int purgeInstancesSynchronously(java.lang.String
definitionId
,longfrom
,longto
, booleancompleted
)throws PMServiceException
|
Parameter |
Type |
Description |
|
definitionID |
string |
Identifies the process definition ID |
|
from |
long |
Identifies the date from which to start listing instances |
|
to |
long |
Identifies the date to which instances should be listed |
|
completed |
Boolean |
Specifies whether this operation should select process instances based on their start or completion date. If false, selects process instances based on the start date. |
Returns the purge operation status. Valid values are:
0 = PURGE_SUCCESS
1 = PURGE_FAILURE_INTERNAL_ERROR
3 = NO_INSTANCES_TO_PURGE
PMServiceException
Permanently deletes all process instances created from the specified process definition that started or completed between the specified dates and also the associated data from the STATS table and run within the specified time period.
public int purgeSynchronouslyForCompletedWithStats(java.lang.String
definitionId
,longfrom
,longto
, booleancompleted, boolean deleteStats
)throws PMServiceException
|
Parameter |
Type |
Description |
|
definitionID |
string |
Identifies the process definition ID |
|
from |
long |
Identifies the date from which to start listing instances |
|
to |
long |
Identifies the date to which instances should be listed |
|
completed |
Boolean |
Specifies whether this operation should select process instances based on their start or completion date. If false, selects process instances based on the start date. |
|
deleteStats |
Boolean |
Specifies whether this operation should delete the stats table records as part of purge If false, the stats table records are not deleted. |
Returns the purge operation status. Valid values are:
0 = PURGE_SUCCESS
1 = PURGE_FAILURE_INTERNAL_ERROR
3 = NO_INSTANCES_TO_PURGE
PMServiceException
| Copyright © 2010 CA. All rights reserved. | Tell Technical Publications how we can improve this information |