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
从类 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.