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

console should pass authenticated user to engine operations

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Unresolved
    • Icon: Major Major
    • jBPM 4.x
    • None
    • Console

      following pieces of console code should be revisisted so that the authenticated user is passed to the engine operations:

      public ProcessInstanceRef newInstance(String definitionId, Map<String, Object> processVars)
      {
      Environment env = ((EnvironmentFactory)processEngine).openEnvironment();

      try

      { ExecutionService execService = this.processEngine.getExecutionService(); Execution exec = execService.startProcessInstanceById(definitionId); execService.setVariables(exec.getId(), processVars); return ModelAdaptor.adoptExecution((ExecutionImpl)exec); }

      finally

      { env.close(); }

      }

      First, the API needs to expose a way on how to set the authenticated user programmatically.

            Unassigned Unassigned
            tom.baeyens Tom Baeyens (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: