Input: workflows and resources
Output: allocation of tasks on resources
(1)  ;  / Assign the tasks to list with partially relation /
(2)  ;  / Assign the resources to list /
(3)  ;
(4)  While do
(5)   ;
(6)   ;
(7)    While do
(8)    ;
(9)    ;
     / calculate TC of on (Formula (3)) /
(10)    End
(11)   ;
       / select the optimal resource with the minimum TC /
(12)    pays to ;
(13)   all providers ;
       / change resource price (Formula (1)) /
(14)   End
Algorithm 1: Dynamic pricing based allocation mechanism.