Case Prediction Processor(s)
This process (SWDIR\etc\bgpredict) receives messages from the iProcess Background processes. When a case instruction that results in a change to a case has been processed, the iProcess Background processes notify the Case Prediction processes so that the prediction data (stored in the database) can be updated. There can be multiple case prediction processes running concurrently.
Each message contains information about the case that has changed and the procedure and instruction that caused the change. The process will read messages from the queue(s) and update the predict table so that it contains the latest prediction information about the case that the queued message was for.
The process attempts to determine a valid addressee for each step, so that SW_USER:attribute (where attribute is a user attribute, for example, DESCRIPTION) resolves to something valid. If there are multiple addressees on a step then the first one is taken, which is resolved in the following order:
| 1. | First the process checks the user and group addressees and uses the first one in the list. If it finds a group it lists the first member in the group. |
| 2. | If no user or group was found it then checks the field addressees. |
| 3. | Finally it checks the roles. |
If no addressee can be determined, if a group has no members, or a field or role contains an invalid user, then the process defaults to using the system administrator user (by default, swadmin).