commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 28238] New: - [workflow] calling an activity from an IfStep doesn't work
Date Tue, 06 Apr 2004 18:22:05 GMT
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


Mime
View raw message