Search in sources :

Example 11 with DeploymentEntity

use of org.camunda.bpm.engine.impl.persistence.entity.DeploymentEntity in project camunda-bpm-platform by camunda.

the class ResourceExecutableScript method loadScriptSource.

protected synchronized void loadScriptSource() {
    if (getScriptSource() == null) {
        DeploymentEntity deployment = Context.getCoreExecutionContext().getDeployment();
        String source = ResourceUtil.loadResourceContent(scriptResource, deployment);
        setScriptSource(source);
    }
}
Also used : DeploymentEntity(org.camunda.bpm.engine.impl.persistence.entity.DeploymentEntity)

Aggregations

DeploymentEntity (org.camunda.bpm.engine.impl.persistence.entity.DeploymentEntity)11 DeploymentManager (org.camunda.bpm.engine.impl.persistence.entity.DeploymentManager)3 ResourceEntity (org.camunda.bpm.engine.impl.persistence.entity.ResourceEntity)3 ArrayList (java.util.ArrayList)2 HashMap (java.util.HashMap)2 NotFoundException (org.camunda.bpm.engine.exception.NotFoundException)2 NotValidException (org.camunda.bpm.engine.exception.NotValidException)2 Before (org.junit.Before)2 ByteArrayInputStream (java.io.ByteArrayInputStream)1 HashSet (java.util.HashSet)1 Map (java.util.Map)1 Set (java.util.Set)1 ProcessApplicationRegistration (org.camunda.bpm.application.ProcessApplicationRegistration)1 ProcessEngineConfigurationImpl (org.camunda.bpm.engine.impl.cfg.ProcessEngineConfigurationImpl)1 CmmnHandlerContext (org.camunda.bpm.engine.impl.cmmn.handler.CmmnHandlerContext)1 DefaultCmmnElementHandlerRegistry (org.camunda.bpm.engine.impl.cmmn.handler.DefaultCmmnElementHandlerRegistry)1 CmmnTransform (org.camunda.bpm.engine.impl.cmmn.transformer.CmmnTransform)1 CmmnTransformer (org.camunda.bpm.engine.impl.cmmn.transformer.CmmnTransformer)1 CommandContext (org.camunda.bpm.engine.impl.interceptor.CommandContext)1 ProcessApplicationDeploymentImpl (org.camunda.bpm.engine.impl.persistence.entity.ProcessApplicationDeploymentImpl)1