5 Replies Latest reply on Aug 31, 2007 11:05 AM by Olivier Thierry

    How to pass a variable to a Seam action in a Jbpm process ?

    Olivier Thierry Apprentice

      Hi,

      In a Jbpm process, I have an action that should call a method of a Seam component. No problem until there. Now I want to pass a parameter to this method, so that it could be a generic method.

      In my process definition, I configured the action this way :

      <action expression="#{afficherMessageConsole.execute('coucou')}" />


      But I have the following error :

      org.jbpm.jpdl.el.ELException: Encountered "(",
      expected one of ["}", ".", ">", "gt", "<", "lt", "==", "eq", "<=", "le", ">=",
      "ge", "!=", "ne", "[", "+", "-", "*", "/", "div", "%", "mod", "and", "&&", "or",
      "||", "?"]
       at org.jbpm.jpdl.el.impl.ExpressionEvaluatorImpl.parseExpressionString(ExpressionEvaluatorImpl.java:321)
       at org.jbpm.jpdl.el.impl.ExpressionEvaluatorImpl.evaluate(ExpressionEvaluatorImpl.java:251)
       at org.jbpm.jpdl.el.impl.ExpressionEvaluatorImpl.evaluate(ExpressionEvaluatorImpl.java:191)
       at org.jbpm.jpdl.el.impl.JbpmExpressionEvaluator.evaluate(JbpmExpressionEvaluator.java:34)
       at org.jbpm.graph.def.Action.execute(Action.java:119)
      


      I think there is a syntax error, but I can't find it. It must be something stupid, but I am stupid too so I can't see it lol

      Thanks in advance