0 Replies Latest reply on Feb 23, 2010 2:15 AM by yogitabartake

    Alternative for ExecutionImpl methods

    yogitabartake

      I am trying to suspend the exeution when I get an error and later resume the same. But the only way I could find is by using the ExecutionImpl's suspend/resume method.

      How can I achieve the same using services?

      And also after using resume the execution is not moving ahead.

      I tried using the execute method but that gives an error.

       

       

      org.jbpm.api.JbpmException: no environment to get org.jbpm.pvm.internal.session.RepositorySession
      at org.jbpm.pvm.internal.env.EnvironmentImpl.getFromCurrent(EnvironmentImpl.java:197)
      at org.jbpm.pvm.internal.env.EnvironmentImpl.getFromCurrent(EnvironmentImpl.java:190)
      at org.jbpm.pvm.internal.model.ExecutionImpl.getProcessDefinition(ExecutionImpl.java:1096)
      at org.jbpm.pvm.internal.model.ExecutionImpl.getActivity(ExecutionImpl.java:1118)