Method for acquiring service from workflow system
暂无分享,去创建一个
The invention discloses a method for acquiring a service from a workflow system, which can be used for lowering the cost and enhancing the reliability of the system and has high running efficiency. The method for acquiring the service comprises the following steps of: 1, searching a corresponding service list from a first hash table according to the identification code of a participant; 2, obtaining a service number from the service list and deleting the service number from the service list; 3, searching and judging whether the service number exists in a second hash table, if so, 3.1, returning a service pointed by the service number to the participant, updating the service number in a database table into an acquired state, deleting the service number from the second hash table and exiting a service acquiring process, or otherwise, 3.2, repeating the steps 2 and 3 until the service is acquired or returning unavailable service for acquiring to the participant when no service can be acquired after all service numbers of the service list are obtained, and exiting the service acquiring process.