3 Replies Latest reply on May 16, 2006 10:00 AM by saviola

    bsh and logical operators

    aksharma

      Using a bsh in condition throws exception

      <condition expression="#{contextInstance.variables[TEST1]!=null @or
      contextInstance.variables['TEST2']!=null}">

        • 1. Re: bsh and logical operators
          saviola

          How about the exception? Can you post a stack trace or something?
          As a beginning I think the varibale name (TEST1) should be in single quotas.
          What is this '@' sign for before the 'or'.

          • 2. Re: bsh and logical operators
            aksharma

            rg.jbpm.graph.def.DelegationException
            at org.jbpm.graph.def.GraphElement.raiseException(Unknown Source)
            at org.jbpm.graph.def.GraphElement.raiseException(Unknown Source)
            at org.jbpm.graph.def.Node.execute(Unknown Source)
            at org.jbpm.graph.def.Node.enter(Unknown Source)
            at org.jbpm.graph.def.Transition.take(Unknown Source)
            at org.jbpm.graph.def.Node.leave(Unknown Source)
            at org.jbpm.graph.node.StartState.leave(Unknown Source)
            at org.jbpm.graph.exe.Token.signal(Unknown Source)
            at org.jbpm.graph.exe.Token.signal(Unknown Source)

            Tries with quotes ..No luck

            @ is because of the bsh construct
            && gives JPDL exceotion

            • 3. Re: bsh and logical operators
              saviola

              Try like this:

              <condition expression="#{contextInstance.variables.TEST1 ne null @or
              contextInstance.variables.TEST2 ne null}">
              

              I am not sure about the
              @or
              construct usage.