1.Functional Description
1.1Purpose
This function will perform Get, Add, Update, Delete, Delete All, Get Next, Add/Update, and Terminate functions on the ER Workflow System Function
Data Cache used by R9000090 to determine everywhere workflow system functions are called.
The calling functions are responsible for loading all appropriate key values to the data structure and identifying the number of keys to use in
retrieval/update operations.
1.2 Setup Notes and Prerequisites
Cache Action Codes
'1' Get - retrieve the cache element.
'2' Add - add a cache element.
'3' Update - update a cache element.
'4' Delete - delete a cache element.
'5' Delete All - delete all cache elements
'6' Get Next - retrieve the next cache element
'7' Add/Update - will add if element does not exist, will change if it does exist.
'8' Terminate - terminate cache
'9' Release Cursor - close the input cursor
Number of Keys
If the number of keys is passed as a parameter, the business function uses this value to setup key
values for a Get, Update, Delete, and Add/Update.
A zero may be passed to retrieve, update, or delete the first record.
NEXT to fetch elements from the cache sequentially. If GET NEXT is called until the end of the keyed cache dataset is found, the function automatically closes
the open cursor. Otherwise, the calling application is responsible for closing the cursor using action code '9'.
1.3Special Logic
This function creates a unique cache for each process. The function appends the input Job Number string to the function name 'B9000110-' to build the
cache name used for the calling application.
^
D9000110 - Cache ER Workflow System Function Data
Parameter Name | Data Item | Data Type | Req/Opt | I/O/Both |
---|---|---|---|---|
szJobNumber | JOB | char | REQ | INPUT |
Job Number for this process. It is used to form the cache name.
| ||||
szObjectName | OBNM | char | OPT | BOTH |
Key field for cacheab
| ||||
szFormName | FMNM | char | OPT | BOTH |
The unique name that identifies a form. | ||||
idControlID | CTRLID | ID | OPT | BOTH |
This field give the control id for the Evnet Rules Specifications. | ||||
szEventDescription | DSC1 | char | OPT | BOTH |
Brief information about an item; a remark or an explanation. | ||||
szVersion | VERS | char | OPT | BOTH |
A user-defined set of specifications that control how applications and reports run. You use versions to group and save a set of user-defined
| ||||
szCacheActionCode | CACTN | char | REQ | INPUT |
'1' = Get cache element
| ||||
cErrorCode | ERRC | char | OPT | OUTPUT |
'0' = Success
| ||||
iNumberOfKeys | INT01 | integer | OPT | INPUT |
Number of Keys to be used in the cache action. Required for keyed fetches, updates and deletes.ab
| ||||
cSuppressErrorMessage | SUPPS | char | OPT | INPUT |
'0'= Allow runtime error message handling.
| ||||
szErrorMessageID | DTAI | char | OPT | OUTPUT |
" " = Success
| ||||
idCacheCursorPtr | GENLNG | ID | OPT | BOTH |
Cursor used for sequential fetch from cache. Required for Get Next operation.ab
| ||||
iSequenceNumber | INT01 | integer | OPT | BOTH |
Key field for cacheab
| ||||
szControlName | DL01 | char | OPT | BOTH |
A user defined name or remark. | ||||
szFormDescription | DL02 | char | OPT | BOTH |
Additional text that further describes or clarifies a field in the system. | ||||
szWorkflowSystemFunctionDesc | TXPP | char | OPT | BOTH |
An all-purpose string that the system uses to temporarily display large amounts of text. | ||||
iUniqueNumber | INT02 | integer | OPT | BOTH |
Number of Days in the Past to Query for Quote Requests Received. | ||||
szWorkflowSystemFunction | DSCR | char | OPT | BOTH |
For OneWorld, the row description that identifies fields on forms and reports.
For World, the title that identifies text and reports. Use it in a
|
None |
None |