AnsweredAssumed Answered

Droolls drl file included in bar is not deployed.

Question asked by mutcha on Jul 5, 2012
Latest reply on Jul 5, 2012 by frederikheremans1
Hi I tried to deploy process with rule, but it didn't work. Can you help?

private ProcessEngine createProcessEngineInMemory() {
        return ProcessEngineConfiguration.createStandaloneInMemProcessEngineConfiguration()
                .setDatabaseSchemaUpdate( ProcessEngineConfiguration.DB_SCHEMA_UPDATE_CREATE_DROP )
                .setJdbcUrl( "jdbc:h2:mem:my-own-db;DB_CLOSE_DELAY=1000" ).setJobExecutorActivate( true ).buildProcessEngine();
    }
private void deployBar( RepositoryService repositoryService ) {
        try {
            repositoryService
                    .createDeployment()
                    .addZipInputStream(
                        new ZipInputStream( new FileInputStream( "R:/MHServer2/mhcc.app.incidentservice.app/bpmn/Incident.bar" ) ) )
                    .deploy().getId();
        } catch ( FileNotFoundException e ) {
            theLog.error( IncidentServiceAppPlugin.theLogMarker, "%%%%%%%% exception: [ message={} ]", e.getMessage() );
        }
    }

private void test1() {

// Create process engine in memory
ProcessEngine processEngine = createProcessEngineInMemory();
RepositoryService repositoryService = processEngine.getRepositoryService();

//Deploy it
deployBar( repositoryService );

}

I got exception:
org.activiti.engine.ActivitiException: deployment 1 doesn't contain any rules

But I placed in the bar, the *.drl file.
Do you know what can be wrong?

Outcomes