Item12986: Crash when transitioning to a form that doesn't have the same fields

pencil
Priority: Normal
Current State: Closed
Released In: n/a
Target Release:
Applies To: Extension
Component: WorkflowPlugin
Branches: trunk
Reported By: CrawfordCurrie
Waiting For:
Last Change By: CrawfordCurrie
Given a topic where a state transition on that topic is governed by entries in the topic form, if the topic form in the target of the transition doesn't also support those same fields, then the conditions on the transition may fail.

For example, you might have a field "ApproverNames" that the Workflow accesses using %QUERY{"ApproverNames"}%. This will be correctly expanded at the start of the transition, but when it comes to the save the form will have changed and unless the ApproverNames field is also in the new form, there will be a crash.

Fix by checking the transition using the meta for the existing topic, and not that for the transitioned topic.

-- CrawfordCurrie - 08 Aug 2014

 

ItemTemplate edit

Summary Crash when transitioning to a form that doesn't have the same fields
ReportedBy CrawfordCurrie
Codebase
SVN Range
AppliesTo Extension
Component WorkflowPlugin
Priority Normal
CurrentState Closed
WaitingFor
Checkins WorkflowPlugin:fd690d1f5185
ReleasedIn n/a
CheckinsOnBranches trunk
trunkCheckins WorkflowPlugin:fd690d1f5185
Release01x01Checkins
Topic revision: r3 - 08 Aug 2014, CrawfordCurrie
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