Find
|
||
Revision history:
Introduced in QPR 7.6.1
Last changed in QPR 8.1 SP3
Returns a list of IDs of ProcessGuide model elements defined by search parameters. The Find command supports all PGModel element types which have IDs.
Synopsis:
PGModel.Find(Parameters, Criteria, SortBy, out ResultList)
Parameters:
Parameters: A semicolon-separated list of parameters for defining the search base. Supported keywords are:
• | FINDSTRING = String containing text that is searched for. In the case this parameter is present, the KIND parameter is ignored. |
• | FINDSTRING_OPTIONS = Comma-separated list of options for FINDSTRING. The supported options are: |
o | WholeWordsOnly: Search whole words only, i.e. words that contain FINDSTRING but are longer than that are not included |
o | MatchCase: Perform a case sensitive search |
• | KIND = ELEMENTTYPES | ELEMENTS. If this is omitted, the default value "" (all kinds of objects) is used. Note that in the case FINDSTRING is present, this parameter is ignored. |
• | INSTANCEONLEVEL = Integer defining the ID of the process level where the search is performed. |
• | IDS = Comma-separated list of element IDs. If this is omitted, the default value "" (all elements defined by the Kind parameter) is used. |
• | ELEMENTTYPES = Comma-separated list of element type names or IDs. If this is omitted, the default value "" (all element types) is used. Also predefined Meta type names can be used: |
o | ALLACTIVITIES: all activity types |
o | ALLSUBPROCESSES: all subprocess types |
o | ALLFLOWS: all flow types |
o | ALLEXTERNALMODELS: all external model types |
o | ALLELEMENTS: all custom element types |
o | ALLINFORMATIONFLOWS: all information flow types |
o | ALLNONINFORMATIONFLOWS: all non-information flow types |
o | ALLINFORMATIONCONTAINERS: all information container types |
o | ALLPROCESSSTEPS: all process step types |
Criteria: Not supported at the moment. Use an empty string here.
SortBy: Not supported at the moment. Use an empty string here.
out ResultList: Variant for storing an array which contains the results of the find operation. The format of the array depends on whether FINDSTRING or KIND was used. In the case of FINDSTRING, the result is an array with three columns:
o | ElementId, integer |
o | ElementName, string |
o | FoundInFields, string |
With the KIND parameter the resulting array has only the ElementId column.
Required Rights:
At least view rights to the model object.
Return Values:
Below are listed the return values that this function can return:
RV_SUCCESS
RV_APPLICATION_QUIT_CALLED
RV_MODEL_NOT_OPEN
RV_ACCESS_DENIED
RV_NO_DATA_FOUND
RV_UNKNOWN_ERROR
Example Procedure:
iRet = PGModel.Find("KIND=ELEMENTS;ELEMENTTYPES=ALLSUBPROCESSES", "", "", arrResults)