2 Replies Latest reply on Aug 17, 2009 8:26 AM by lpiccoli.lucio.asteriski.com

    Jbpm Variables API and @Out the same?

    lpiccoli.lucio.asteriski.com

      hi all,


      i am struggling in porting my jbpm app over to seam.


      i have got issues with jbpm variable usage in seam.


      i was under the impression that jbpm variable can be treated with the @Out.


      Q. if setting a business scope variable able to be retrieve in another task using the jBpm API? ie. see below.



        @Out(scope=ScopeType.BUSINESS_PROCESS, required=false, value=Constant.ITP_TEMPLATE_NAME_JBPM_CONTEXT_IDENTIFIER)  
          String templateName;      
      
      ....
      
      templateName = "name";
      
      


      In a ActionHandler


       
      public void execute(ExecutionContext context) throws Exception {
                
      (String) context.getVariable(ITP_TEMPLATE_NAME_JBPM_CONTEXT_IDENTIFIER);
      



      In the action handler the variable is not available. Which is very strange as there is a variable in the 'variableInstance' table matching the name.


      any explanation/help on sorting this mess is most appreciated.


      -lp