You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by bu...@apache.org on 2004/04/06 20:22:05 UTC

DO NOT REPLY [Bug 28238] New: - [workflow] calling an activity from an IfStep doesn't work

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=28238>.
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