3 Replies Latest reply on Nov 15, 2005 5:51 AM by Norman Barker

    Beanshell variable introduction

    Norman Barker Newbie

      Hi,

      I am having problems with variables using BeanShell and JBpm, I seem to be able to access my own executionContext variables within in the script without first declaring them in the <variable ...> and in particular when I want to introduce a new variable to hold a result of a node using BeanShell I can't (the variable is void). e.g.



      a = "10"

      <variable name='XXX' access='write' mapped-name='a' />


      then I should be able to use XXX in a later event since XXX should now be in the execution context, but I can't. Perhaps it is a misunderstanding on my part, any help would be appreciated.

      Many thanks,

      Norman Barker