openlProjectFolder.getCanonicalPath()); if (rulesDeploy != null) { simpleProjectEngineFactoryBuilder.setProvideRuntimeContext(rulesDeploy.isProvideRuntimeContext()); if (rulesDeploy.getServiceClass() != null) { Class<?> interfaceClass = Thread.currentThread()
SimpleProjectEngineFactory<Object> simpleProjectEngineFactory = simpleProjectEngineFactoryBuilder .setExecutionMode(false) .setProvideRuntimeContext(false) .setWorkspace(resourcesPath) .setProject(resourcesPath)
openlProjectFolder.getCanonicalPath()); if (rulesDeploy != null) { simpleProjectEngineFactoryBuilder.setProvideRuntimeContext(rulesDeploy.isProvideRuntimeContext()); if (rulesDeploy.getServiceClass() != null) { Class<?> interfaceClass = Thread.currentThread()
SimpleProjectEngineFactory<Object> simpleProjectEngineFactory = simpleProjectEngineFactoryBuilder .setExecutionMode(false) .setProvideRuntimeContext(false) .setWorkspace(resourcesPath) .setProject(resourcesPath)
.setProvideRuntimeContext(isProvideRuntimeContext) .setProvideVariations(isProvideVariations) .setExecutionMode(true)
.setProvideRuntimeContext(isProvideRuntimeContext) .setProvideVariations(isProvideVariations) .setExecutionMode(true)
private synchronized SimpleProjectEngineFactory<T> initSimpleProjectEngineFactory( DelegateExecution execution) throws Exception { String processDefinitionId = execution.getProcessDefinitionId(); String resourceValue = (String) resource.getValue(execution); RepositoryService repositoryService = execution.getEngineServices().getRepositoryService(); ProcessDefinition processDefinition = repositoryService.getProcessDefinition(processDefinitionId); File projectWorkspace = ResourceUtils.prepareDeploymentOpenLResource(processDefinition.getDeploymentId(), resourceValue); boolean isProvideRuntimeContext = isProvideRuntimeContext(execution); SimpleProjectEngineFactoryBuilder<T> simpleProjectEngineFactoryBuilder = new SimpleProjectEngineFactoryBuilder<T>() .setExecutionMode(true) .setProject(projectWorkspace.getCanonicalPath()) .setWorkspace(projectWorkspace.getCanonicalPath()) .setProvideRuntimeContext(isProvideRuntimeContext); if (interfaceClass != null && !interfaceClass.equals(Object.class)) { simpleProjectEngineFactoryBuilder.setInterfaceClass(interfaceClass); } if (module != null) { String moduleValue = (String) module.getValue(execution); if (moduleValue != null) { simpleProjectEngineFactoryBuilder.setModule(moduleValue); } } SimpleProjectEngineFactory<T> simpleProjectEngineFactory = simpleProjectEngineFactoryBuilder.build(); return simpleProjectEngineFactory; }
private synchronized SimpleProjectEngineFactory<T> initSimpleProjectEngineFactory( DelegateExecution execution) throws Exception { String processDefinitionId = execution.getProcessDefinitionId(); String resourceValue = (String) resource.getValue(execution); RepositoryService repositoryService = execution.getEngineServices().getRepositoryService(); ProcessDefinition processDefinition = repositoryService.getProcessDefinition(processDefinitionId); File projectWorkspace = ResourceUtils.prepareDeploymentOpenLResource(processDefinition.getDeploymentId(), resourceValue); boolean isProvideRuntimeContext = isProvideRuntimeContext(execution); SimpleProjectEngineFactoryBuilder<T> simpleProjectEngineFactoryBuilder = new SimpleProjectEngineFactoryBuilder<T>() .setExecutionMode(true) .setProject(projectWorkspace.getCanonicalPath()) .setWorkspace(projectWorkspace.getCanonicalPath()) .setProvideRuntimeContext(isProvideRuntimeContext); if (interfaceClass != null && !interfaceClass.equals(Object.class)) { simpleProjectEngineFactoryBuilder.setInterfaceClass(interfaceClass); } if (module != null) { String moduleValue = (String) module.getValue(execution); if (moduleValue != null) { simpleProjectEngineFactoryBuilder.setModule(moduleValue); } } SimpleProjectEngineFactory<T> simpleProjectEngineFactory = simpleProjectEngineFactoryBuilder.build(); return simpleProjectEngineFactory; }