Return-Path: Delivered-To: apmail-jakarta-commons-dev-archive@www.apache.org Received: (qmail 14034 invoked from network); 6 Apr 2004 18:21:35 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 6 Apr 2004 18:21:35 -0000 Received: (qmail 98384 invoked by uid 500); 6 Apr 2004 18:21:20 -0000 Delivered-To: apmail-jakarta-commons-dev-archive@jakarta.apache.org Received: (qmail 98353 invoked by uid 500); 6 Apr 2004 18:21:20 -0000 Mailing-List: contact commons-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Jakarta Commons Developers List" Reply-To: "Jakarta Commons Developers List" Delivered-To: mailing list commons-dev@jakarta.apache.org Received: (qmail 98189 invoked from network); 6 Apr 2004 18:21:19 -0000 Received: from unknown (HELO exchange.sun.com) (192.18.33.10) by daedalus.apache.org with SMTP; 6 Apr 2004 18:21:19 -0000 Received: (qmail 18206 invoked by uid 50); 6 Apr 2004 18:22:05 -0000 Date: 6 Apr 2004 18:22:05 -0000 Message-ID: <20040406182205.18205.qmail@nagoya.betaversion.org> From: bugzilla@apache.org To: commons-dev@jakarta.apache.org Cc: Subject: DO NOT REPLY [Bug 28238] New: - [workflow] calling an activity from an IfStep doesn't work X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT . ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=28238 [workflow] calling an activity from an IfStep doesn't work Summary: [workflow] calling an activity from an IfStep doesn't work Product: Commons Version: 1.0 Alpha Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: Other Component: Sandbox AssignedTo: commons-dev@jakarta.apache.org ReportedBy: bmi_etaylor@yahoo.com basically if you call out to another acitivity using a CallStep from within an IfStep (or any Block) the following code from BaseContext throws a ClassCastException ... // If there are active calls, resume the most recent one try { nextStep = (Step) calls.pop(); this.activity = (Activity) nextStep.getOwner(); <--- problem } ... When the CallStep executes the IfStep is put on the call stack. When control is returned from the call the above code is executed and fails because the IfStep is not an Activity. Instead it should search through nextStep's owner "hierarchy" for the first activity, and assign that one. --------------------------------------------------------------------- To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-dev-help@jakarta.apache.org