org.activiti.engine.impl.bpmn.deployer
类 BpmnDeployer

java.lang.Object
  继承者 org.activiti.engine.impl.bpmn.deployer.BpmnDeployer
所有已实现的接口:
Deployer

public class BpmnDeployer
extends Object
implements Deployer

作者:
Tom Baeyens, Joram Barrez

字段摘要
static String[] BPMN_RESOURCE_SUFFIXES
           
protected  BpmnParser bpmnParser
           
static String[] DIAGRAM_SUFFIXES
           
protected  ExpressionManager expressionManager
           
protected  IdGenerator idGenerator
           
 
构造方法摘要
BpmnDeployer()
           
 
方法摘要
protected  void addAuthorizations(ProcessDefinitionEntity processDefinition)
           
protected  void addMessageEventSubscriptions(ProcessDefinitionEntity processDefinition)
           
protected  void addTimerDeclarations(ProcessDefinitionEntity processDefinition)
           
protected  void createResource(String name, byte[] bytes, DeploymentEntity deploymentEntity)
           
 void deploy(DeploymentEntity deployment)
           
protected  String getBpmnFileImageResourceName(String bpmnFileResource, String diagramSuffix)
           
 BpmnParser getBpmnParser()
           
protected  String getDiagramResourceForProcess(String bpmnFileResource, String processKey, Map<String,ResourceEntity> resources)
          Returns the default name of the image resource for a certain process.
 ExpressionManager getExpressionManager()
           
 IdGenerator getIdGenerator()
           
protected  String getProcessImageResourceName(String bpmnFileResource, String processKey, String diagramSuffix)
           
protected  boolean isBpmnResource(String resourceName)
           
protected  void removeObsoleteMessageEventSubscriptions(ProcessDefinitionEntity processDefinition, ProcessDefinitionEntity latestProcessDefinition)
           
protected  void removeObsoleteTimers(ProcessDefinitionEntity processDefinition)
           
 void setBpmnParser(BpmnParser bpmnParser)
           
 void setExpressionManager(ExpressionManager expressionManager)
           
 void setIdGenerator(IdGenerator idGenerator)
           
protected  String stripBpmnFileSuffix(String bpmnFileResource)
           
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

字段详细信息

BPMN_RESOURCE_SUFFIXES

public static final String[] BPMN_RESOURCE_SUFFIXES

DIAGRAM_SUFFIXES

public static final String[] DIAGRAM_SUFFIXES

expressionManager

protected ExpressionManager expressionManager

bpmnParser

protected BpmnParser bpmnParser

idGenerator

protected IdGenerator idGenerator
构造方法详细信息

BpmnDeployer

public BpmnDeployer()
方法详细信息

deploy

public void deploy(DeploymentEntity deployment)
指定者:
接口 Deployer 中的 deploy

addTimerDeclarations

protected void addTimerDeclarations(ProcessDefinitionEntity processDefinition)

removeObsoleteTimers

protected void removeObsoleteTimers(ProcessDefinitionEntity processDefinition)

removeObsoleteMessageEventSubscriptions

protected void removeObsoleteMessageEventSubscriptions(ProcessDefinitionEntity processDefinition,
                                                       ProcessDefinitionEntity latestProcessDefinition)

addMessageEventSubscriptions

protected void addMessageEventSubscriptions(ProcessDefinitionEntity processDefinition)

addAuthorizations

protected void addAuthorizations(ProcessDefinitionEntity processDefinition)

getDiagramResourceForProcess

protected String getDiagramResourceForProcess(String bpmnFileResource,
                                              String processKey,
                                              Map<String,ResourceEntity> resources)
Returns the default name of the image resource for a certain process. It will first look for an image resource which matches the process specifically, before resorting to an image resource which matches the BPMN 2.0 xml file resource. Example: if the deployment contains a BPMN 2.0 xml resource called 'abc.bpmn20.xml' containing only one process with key 'myProcess', then this method will look for an image resources called 'abc.myProcess.png' (or .jpg, or .gif, etc.) or 'abc.png' if the previous one wasn't found. Example 2: if the deployment contains a BPMN 2.0 xml resource called 'abc.bpmn20.xml' containing three processes (with keys a, b and c), then this method will first look for an image resource called 'abc.a.png' before looking for 'abc.png' (likewise for b and c). Note that if abc.a.png, abc.b.png and abc.c.png don't exist, all processes will have the same image: abc.png.

返回:
null if no matching image resource is found.

getBpmnFileImageResourceName

protected String getBpmnFileImageResourceName(String bpmnFileResource,
                                              String diagramSuffix)

getProcessImageResourceName

protected String getProcessImageResourceName(String bpmnFileResource,
                                             String processKey,
                                             String diagramSuffix)

stripBpmnFileSuffix

protected String stripBpmnFileSuffix(String bpmnFileResource)

createResource

protected void createResource(String name,
                              byte[] bytes,
                              DeploymentEntity deploymentEntity)

isBpmnResource

protected boolean isBpmnResource(String resourceName)

getExpressionManager

public ExpressionManager getExpressionManager()

setExpressionManager

public void setExpressionManager(ExpressionManager expressionManager)

getBpmnParser

public BpmnParser getBpmnParser()

setBpmnParser

public void setBpmnParser(BpmnParser bpmnParser)

getIdGenerator

public IdGenerator getIdGenerator()

setIdGenerator

public void setIdGenerator(IdGenerator idGenerator)


Copyright © 2013 Alfresco. All rights reserved.