Uploaded image for project: 'jBPM'
  1. jBPM
  2. JBPM-304

Transient variables are not available in scripts

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Minor
    • Resolution: Out of Date
    • Affects Version/s: jBPM 3.0.0
    • Fix Version/s: None
    • Component/s: Runtime Engine
    • Labels:
      None
    • Similar Issues:
      Show 10 results 

      Description

      The jBPM documentation, section 7.4.5. Script, says:

      "... By default, all process variables are available as script-variables and no script-variables will be written to the process variables."

      But the transient variables are not available to <script>s, just to <action>s.

        Gliffy Diagrams

          Activity

          Hide
          thomas.diesler Thomas Diesler added a comment -

          resolve as out of date because of 12 month no activity

          Show
          thomas.diesler Thomas Diesler added a comment - resolve as out of date because of 12 month no activity
          Hide
          sjgibbs Simon Gibbs added a comment -

          This issue is still present as of version 3.2.

          I'd like to expose the services of Spring beans by injecting a list of named beans into the transient variables of individual process instances before signalling them. e.g. in beanshell I'd like this to work:

          persistentVariable = transientSpringBean.findData(arg);

          I've tried wrapping VariableResolver but this only affects EL, and is not a suitable alternative.

          Show
          sjgibbs Simon Gibbs added a comment - This issue is still present as of version 3.2. I'd like to expose the services of Spring beans by injecting a list of named beans into the transient variables of individual process instances before signalling them. e.g. in beanshell I'd like this to work: persistentVariable = transientSpringBean.findData(arg); I've tried wrapping VariableResolver but this only affects EL, and is not a suitable alternative.

            People

            • Assignee:
              tom.baeyens Tom Baeyens
              Reporter:
              dserodio Daniel Serodio
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development