Interface ApplicationInstanceService
ApplicationInstanceService
application programming interface
provides methods needed to create and manage ApplicationInstance
for both connected and disconnected ApplicationInstance
.- Since:
- 11.1.2.0.0
- Author:
- Various
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionaddApplicationInstance
(ApplicationInstance objApplicationInstance) This API method adds a record for ApplicationInstance using value-object ApplicationInstance .addApplicationInstances
(List<ApplicationInstance> ApplicationInstanceList) This API method adds records for ApplicationInstances using multiple value-objects for ApplicationInstance .void
deleteApplicationInstance
(long appInstanceKey) This API method deletes a record for the ApplicationInstance using value-object ApplicationInstance .void
deleteApplicationInstances
(long[] appInstanceKeys) This API method deletes records for ApplicationInstances using multiple value-objects for ApplicationInstance .findApplicationInstance
(SearchCriteria searchCriteria, HashMap<String, Object> configParams) This API method finds the ApplicationInstance objects based on SearchCriteria .findApplicationInstanceByKey
(long appInstanceKey) This API method is the convenient way to find Application Instance using ApplicationInstance Key.findApplicationInstanceByKey
(long appInstanceKey, OperationContext operationContext) This API method is the convenient way to find Application Instance using ApplicationInstance Key.findApplicationInstanceByName
(String appInstanceName) This API method is the convenient way to find Application Instance using ApplicationInstance Name.findParentApplicationInstance
(String childApp, HashMap<String, Object> configParams) This API method finds parent Application Instances name.findParentApplicationInstance
(String objectName, SearchCriteria searchCriteria, HashMap<String, Object> configParams) This API method finds Application Instances that can be set as Parent Application Instance.updateApplicationInstance
(ApplicationInstance objApplicationInstance) This API method modifies a the name of the ApplicationInstance usingApplicationInstance
value-object.updateApplicationInstances
(List<ApplicationInstance> ApplicationInstanceList) This API method modifies records for ApplicationInstances using multiple value-objects for ApplicationInstance .
-
Method Details
-
addApplicationInstance
ApplicationInstance addApplicationInstance(ApplicationInstance objApplicationInstance) throws ITResourceNotFoundException, ObjectNotFoundException, DuplicateApplicationInstanceException, DuplicateApplicationInstanceNameException, RequestDataSetNotFoundException, AccessDeniedException, GenericAppInstanceServiceException This API method adds a record for ApplicationInstance using value-object ApplicationInstance .- Parameters:
objApplicationInstance
- - TheApplicationInstance
value object- Returns:
- A ApplicationInstance containing the key of the Application Instance created.
- Throws:
ITResourceNotFoundException
- if ITResource Key present in Application Instance VO does not exist.ObjectNotFoundException
- if a Object Key present in Application Instance VO is not foundDuplicateApplicationInstanceException
- if Application Instance is already created for ITResource-Object combinationAccessDeniedException
- if there are authorization failures while creating application instanceGenericAppInstanceServiceException
- if error occurs while saving the record in dbDuplicateApplicationInstanceNameException
RequestDataSetNotFoundException
- Since:
- 11.1.2.0.0
-
updateApplicationInstance
ApplicationInstance updateApplicationInstance(ApplicationInstance objApplicationInstance) throws ApplicationInstanceNotFoundException, AccessDeniedException, GenericAppInstanceServiceException This API method modifies a the name of the ApplicationInstance usingApplicationInstance
value-object.- Parameters:
objApplicationInstance
- - TheApplicationInstance
value object- Returns:
- A modified
ApplicationInstance
containing the key of the Application Instance that is modified. - Throws:
ApplicationInstanceNotFoundException
- if ApplicationInstance Key present in Application Instance VO does not exist.AccessDeniedException
- if there are authorization failures while updating application instanceGenericAppInstanceServiceException
- if error occurs while saving the record in db- Since:
- 11.1.2.0.0
-
deleteApplicationInstance
void deleteApplicationInstance(long appInstanceKey) throws ApplicationInstanceNotFoundException, AccessDeniedException, GenericAppInstanceServiceException This API method deletes a record for the ApplicationInstance using value-object ApplicationInstance .- Parameters:
appInstanceKey
- - The ApplicationInstance Key- Throws:
ApplicationInstanceNotFoundException
- if ApplicationInstance Key present in Application Instance VO does not exist.AccessDeniedException
- if there are authorization failures while deleting application instanceGenericAppInstanceServiceException
- if error occurs while saving the record in db- Since:
- 11.1.2.0.0
-
findApplicationInstance
List<ApplicationInstance> findApplicationInstance(SearchCriteria searchCriteria, HashMap<String, Object> configParams) throws GenericAppInstanceServiceExceptionThis API method finds the ApplicationInstance objects based on SearchCriteria .- Parameters:
searchCriteria
- The search criteria based on which entries will be retrieved from the backend. The SearchCriteria Operators supported are AND, OR, EQUAL, NOT_EQUAL For additional comparisons like contains the SearchCriteria Operator will be EQUAL with value to be searched will be '**' configParams
- Parameters to further configure the search operation. There are four configuration parameters. STARTROW, ENDROW, SORTEDBY and SORTORDER.The STARTROW and ENDROW search configuration parameters indicates which subset of the complete search result is to be fetched. These parameters are mandatory.
The SORTEDBY search configuration parameter indicates the attribute on which search result is to be sorted. This parameter is optional and is set to 'User Login' by default.
The SORTORDER search configuration parameter indicates the order of sorting. There are two possible values for this parameter. To sort the result in ascending order use SortOrder.ASCENDING and to sort the result in descending order use SortOrder.DESCENDING. This parameter is optional and is set to SortOrder.ASCENDING by default.
The ASSIGNED_PARENT_APP_INSTANCE search configuration parameter can be used to find application instances that are assigned as parent application instance.
The FORMDETAILS search configuration parameter indicates weather form data need to be associated with application instance. There are two possible values for this parameter. To exclude the process form details use EXCLUDE and to include the process form details use INCLUDE. This parameter is optional and works as INCLUDE by default.
- Returns:
- A List of ApplicationInstance containing the key of the Application Instance created. If no items found, it will return empty list.
- Throws:
GenericAppInstanceServiceException
- if error occurs while fetching the records in db- Since:
- 11.1.2.0.0
-
findApplicationInstanceByKey
ApplicationInstance findApplicationInstanceByKey(long appInstanceKey) throws ApplicationInstanceNotFoundException, GenericAppInstanceServiceException This API method is the convenient way to find Application Instance using ApplicationInstance Key. This API internally will call findApplicationInstance API.- Parameters:
appInstanceKey
- - The ApplicationInstance Key- Returns:
- ApplicationInstance value object containing all details. It will be null if no record is found.
- Throws:
GenericAppInstanceServiceException
- if error occurs while fetching the records in dbApplicationInstanceNotFoundException
- Since:
- 11.1.2.0.0
-
findApplicationInstanceByKey
ApplicationInstance findApplicationInstanceByKey(long appInstanceKey, OperationContext operationContext) throws ApplicationInstanceNotFoundException, GenericAppInstanceServiceException This API method is the convenient way to find Application Instance using ApplicationInstance Key. This API is used in request context when approver is required to find details of ApplicationInstance. OperationContext passed to this API method lets authorization decides if logged in user has authorization to get details of ApplicationInstance. This API internally will call findApplicationInstance API.- Parameters:
appInstanceKey
- - The ApplicationInstance KeyoperationContext
- the object extracted from requestContext in approval scenario- Returns:
- ApplicationInstance value object containing all details. It will be null if no record is found.
- Throws:
GenericAppInstanceServiceException
- if error occurs while fetching the records in dbApplicationInstanceNotFoundException
- Since:
- 11.1.2.0.0
-
findApplicationInstanceByName
ApplicationInstance findApplicationInstanceByName(String appInstanceName) throws ApplicationInstanceNotFoundException, GenericAppInstanceServiceException This API method is the convenient way to find Application Instance using ApplicationInstance Name. This API internally will call findApplicationInstance API.- Parameters:
appInstanceName
- - The ApplicationInstance Name- Returns:
- pplicationInstance value object containing all details. It will be null if no record is found.
- Throws:
ApplicationInstanceNotFoundException
- thrown if ApplicationInstance Key present in Application Instance VO does not exist.GenericAppInstanceServiceException
- if error occurs while fetching the records in db- Since:
- 11.1.2.0.0
-
addApplicationInstances
List<ApplicationInstance> addApplicationInstances(List<ApplicationInstance> ApplicationInstanceList) throws BulkException This API method adds records for ApplicationInstances using multiple value-objects for ApplicationInstance .- Parameters:
ApplicationInstanceList
- - The list of ApplicationInstance value object- Returns:
- A List of newly created Application Instance containing the key of the Application Instance.
- Throws:
AccessDeniedException
- if there are authorization failures while creating application instanceBulkException
- if error occurred while adding the list of ApplicationInstance.- Since:
- 11.1.2.0.0
-
deleteApplicationInstances
This API method deletes records for ApplicationInstances using multiple value-objects for ApplicationInstance .- Parameters:
appInstanceKeys
- - The Array containing ApplicationInstance Keys- Throws:
AccessDeniedException
- if there are authorization failures while deleting application instanceBulkException
- if error occurred while adding the list of ApplicationInstance.- Since:
- 11.1.2.0.0
-
updateApplicationInstances
List<ApplicationInstance> updateApplicationInstances(List<ApplicationInstance> ApplicationInstanceList) throws BulkException This API method modifies records for ApplicationInstances using multiple value-objects for ApplicationInstance .- Parameters:
ApplicationInstanceList
- - The list of ApplicationInstance value object- Returns:
- A list of updated Application Instance
- Throws:
AccessDeniedException
- if there are authorization failures while updating application instanceBulkException
- if error occurred while adding the list of ApplicationInstance.- Since:
- 11.1.2.0.0
-
findParentApplicationInstance
List<ApplicationInstance> findParentApplicationInstance(String objectName, SearchCriteria searchCriteria, HashMap<String, Object> configParams) throws ObjectNotFoundException, GenericAppInstanceServiceExceptionThis API method finds Application Instances that can be set as Parent Application Instance. An Application Instance 'A' can be set as parent to Application Instance 'B', if the resource object of 'B' is dependent on resource object of 'A'- Parameters:
objectName
- Object Name of the Application Instance for which Parent Application Instance needs to be setsearchCriteria
- The search criteria based on which entries will be retrieved from the back end. The SearchCriteria Operators supported are AND, OR, EQUAL, NOT_EQUALconfigParams
- Parameters to further configure the search operation. There are four configuration parameters. STARTROW, ENDROW, SORTEDBY and SORTORDER.The STARTROW and ENDROW search configuration parameters indicates which subset of the complete search result is to be fetched. These parameters are mandatory.
The SORTEDBY search configuration parameter indicates the attribute on which search result is to be sorted. This parameter is optional and is set to 'User Login' by default.
The SORTORDER search configuration parameter indicates the order of sorting. There are two possible values for this parameter. To sort the result in ascending order use SortOrder.ASCENDING and to sort the result in descending order use SortOrder.DESCENDING. This parameter is optional and is set to SortOrder.ASCENDING by default.
The FORMDETAILS search configuration parameter indicates weather form data need to be associated with application instance. There are two possible values for this parameter. To exclude the process form details use EXCLUDE and to include the process form details use INCLUDE. This parameter is optional and works as INCLUDE by default.
- Returns:
- A List of ApplicationInstances that can be set as parent.
- Throws:
GenericAppInstanceServiceException
- if error occurs while fetching the records in dbObjectNotFoundException
- if Object with Object Name passed as parameter does not exist- Since:
- 11.1.2.0.0
-
findParentApplicationInstance
List<ApplicationInstance> findParentApplicationInstance(String childApp, HashMap<String, Object> configParams) throws ObjectNotFoundException, GenericAppInstanceServiceExceptionThis API method finds parent Application Instances name.- Parameters:
childApp
- The application instance name for which parent application instance is to be searchedconfigParams
- Parameters to further configure the search operation. There are four configuration parameters. STARTROW, ENDROW, SORTEDBY and SORTORDER.The STARTROW and ENDROW search configuration parameters indicates which subset of the complete search result is to be fetched. These parameters are mandatory.
The SORTEDBY search configuration parameter indicates the attribute on which search result is to be sorted. This parameter is optional and is set to 'User Login' by default.
The SORTORDER search configuration parameter indicates the order of sorting. There are two possible values for this parameter. To sort the result in ascending order use SortOrder.ASCENDING and to sort the result in descending order use SortOrder.DESCENDING. This parameter is optional and is set to SortOrder.ASCENDING by default.
The FORMDETAILS search configuration parameter indicates weather form data need to be associated with application instance. There are two possible values for this parameter. To exclude the process form details use EXCLUDE and to include the process form details use INCLUDE. This parameter is optional and works as INCLUDE by default.
- Returns:
- A List of ApplicationInstances that can be set as parent.
- Throws:
GenericAppInstanceServiceException
- if error occurs while fetching the records in dbObjectNotFoundException
- if Object with Object Name passed as parameter does not exist- Since:
- 11.1.2.0.0
-