public void associateExecutionById ( String executionId ) { Execution execution = processEngine . getRuntimeService ( ) . createExecutionQuery ( ) . executionId ( executionId ) . singleResult ( ) ; if ( execution == null ) { throw new ProcessEngineCdiException ( "Cannot associate execution by id: no execution with id '" + executionId + "' found." ) ; } associationManager . setExecution ( execution ) ; }
Associate with the provided execution . This starts a unit of work .