Item13304: Add exclusion based on last transition user, and fix email templates

pencil
Priority: Enhancement
Current State: Closed
Released In: n/a
Target Release:
Applies To: Extension
Component: WorkflowPlugin
Branches: master
Reported By: MarkusGerhold
Waiting For:
Last Change By: GeorgeClark
The last user who changes the topic to another state will be stored in the workflow-attribute as LASTUSER_{state}, similar to the LASTTIME_ and LASTVERSION_ fields. To conveniently access the last user, the macro %WORKFLOWLASTUSER{"state"}% is introduced. The reason for this feature is to be able to send a notificiation to the user who last changed the topic to a specified state, e.g. if a topic is rejected the user who requested approval should be notified.

In our use-case it is not allowed for the user who requested approval to be the one who approves the final document even though this user may be generally allowed to. Thus this user can be excluded with the value not(LASTUSER_{state} in the Allowed column of the transition table.

The last change concerns the handling of custom email templates. If one or many custom email templates are specified, the default email will not be sent. Every additional email-address in the column will be stored in the EMAILTO-macro thus making them available in the custom email templates. However if there are no additional email-addresses specified, the custom email templates must state the addresses themselves.

-- MarkusGerhold

Many thanks for this, Markus. I'd appreciate if you could add a topic like this one for tracking if you make any other changes.

-- CrawfordCurrie - 11 Mar 2015

 

ItemTemplate edit

Summary Add exclusion based on last transition user, and fix email templates
ReportedBy MarkusGerhold
Codebase
SVN Range
AppliesTo Extension
Component WorkflowPlugin
Priority Enhancement
CurrentState Closed
WaitingFor
Checkins WorkflowPlugin:667fe41d7432
ReleasedIn n/a
CheckinsOnBranches master
trunkCheckins
masterCheckins WorkflowPlugin:667fe41d7432
ItemBranchCheckins
Release01x01Checkins
Topic revision: r2 - 31 Aug 2015, GeorgeClark
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