Thanks for replying. from the user guide, I don't think you can do the result mapping for a script task, you can do that for a user task or a service task. If you can do it with script task, please give me more detailed informaiton.
BTW, I did make it work by doing the calculation on the SequenceFlow, it is not elegant, but it worked.
Thanks again.