Research Article

A Workflow Criticality-Based Approach to Bypass the Workflow Satisfiability Problem

Algorithm 3

Priority_DP algorithm.
(1)for each user Uk in “Non_Conflict” or “Non_Conclict_CTdo
(2)if t′ ← Uk in ωand st(t′) ← (“AssignedorStarted”) then
(3)  if T′ is “Optionalthen
(4)   st(t′) ← “Cancelled
(5)   Return Uk
(6)  else if T′ is “Interruptible then
(7)   if T′ is “NonDelay_Sensitive” or [T′ is “Delay_Sensitive” and (H + H′ < D × nb)] then
(8)    if Uk “Non_Conflictthen
(9)     if Pr(t′) < Pr(t) and Cr(ω(t′)) ≤ Theta(ω) then
(10)      st(t′) ← “Interrupted
(11)      Return Uk
(12)     else
(13)      Returnnull
(14)     end if
(15)    else if UkNon_Conflict_CTthen
(16)     if Cr(ω(t′)) ≤ Theta(ω′) then
(17)      st(t′) ← “Interrupted
(18)      Return Uk
(19)     else
(20)      Returnnull
(21)     end if
(22)    end if
(23)   else
(24)    Returnnull
(25)   end if
(26)  else
(27)   Returnnull
(28)  end if
(29)else
(30)  Return Uk
(31)end if
(32)end for