Package org.camunda.bpm.engine.impl.context

Examples of org.camunda.bpm.engine.impl.context.CaseExecutionContext


    // when i set a variable
    caseService.withCaseExecution(taskExecution.getId()).setVariableLocal("testVariable", "value1").execute();

    // then the listener is invoked
    assertEquals(1, LogExecutionContextListener.getCaseExecutionContexts().size());
    CaseExecutionContext executionContext = LogExecutionContextListener.getCaseExecutionContexts().get(0);

    assertNotNull(executionContext);

    // although this is not inside a command, checking for IDs should be ok
    assertEquals(caseInstance.getId(), executionContext.getCaseInstance().getId());
    assertEquals(taskExecution.getId(), executionContext.getExecution().getId());

    LogExecutionContextListener.reset();
  }
View Full Code Here


    this.variableInstance = variableInstance;
    this.contextExecution = contextExecution;
  }

  protected void invoke() throws Exception {
    CaseExecutionContext executionContext = Context.getCaseExecutionContext();
    try {
      if (executionContext == null && contextExecution instanceof CaseExecutionEntity) {
        Context.setExecutionContext((CaseExecutionEntity) contextExecution);
      }
      variableListenerInstance.notify(variableInstance);
View Full Code Here

TOP

Related Classes of org.camunda.bpm.engine.impl.context.CaseExecutionContext

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.