This question about Using an extension: Answered

Workflow plugin - Prevent user to change state if changed previous state

Hi,

I am trying to use the functionality described in the WorkflowPlugin documentation

"If you want to exclude the user who changed a specific state last, even though the user is generally allowed to, you can add not(LASTUSER_{State}) to the Allowed column of the transition table and the last user for the specified state will be excluded."

I have tried various options but have been unable to get this to work.

My transitions table is

State Action Next State Allowed Form Notify
APPROVED Revise UNDERREVISION      
UNDERREVISION Ready for Approval WAITINGFORAPPROVAL     SusanManoy
WAITINGFORAPPROVAL Approve APPROVED JoeBloggs, FrankBruno, ChrisEvans, not(LASTUSER_WAITINGFORAPPROVAL)    
WAITINGFORAPPROVAL Reject UNDERREVISION      

I have tried various other ways, such as NOT(WORKFLOWLASTUSER{"WAITINGFORAPPROVAL"})

Any help gratefully received.

-- SusanManoy - 22 Jun 2015

I have finally figured this out. By putting the list of users into a group, and listing the group in the allowed column it works fine.

-- SusanManoy - 24 Jun 2015
 

QuestionForm edit

Subject Using an extension
Extension WorkflowPlugin
Version
Status Answered
Related Topics
Topic revision: r2 - 24 Jun 2015, SusanManoy
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy