本文整理汇总了Java中org.activiti.engine.impl.pvm.process.ParticipantProcess类的典型用法代码示例。如果您正苦于以下问题:Java ParticipantProcess类的具体用法?Java ParticipantProcess怎么用?Java ParticipantProcess使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
ParticipantProcess类属于org.activiti.engine.impl.pvm.process包,在下文中一共展示了ParticipantProcess类的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: parseCollaboration
import org.activiti.engine.impl.pvm.process.ParticipantProcess; //导入依赖的package包/类
/**
* Parses the collaboration definition defined within the 'definitions'
* root element and get all participants to lookup their process references
* during DI parsing.
*
*/
public void parseCollaboration() {
Element collaboration = rootElement.element("collaboration");
if (collaboration != null) {
for (Element participant : collaboration.elements("participant")) {
String processRef = participant.attribute("processRef");
if (processRef != null) {
ProcessDefinitionImpl procDef = getProcessDefinition(processRef);
if(procDef != null) {
// Set participant process on the procDef, so it can get rendered later on if needed
ParticipantProcess participantProcess = new ParticipantProcess();
participantProcess.setId(participant.attribute("id"));
participantProcess.setName(participant.attribute("name"));
procDef.setParticipantProcess(participantProcess);
participantProcesses.put(participantProcess.getId(), processRef);
}
}
String xsiType = participant.attributeNS(BpmnParser.XSI_NS, "type");
if (null != xsiType && "tPhysicalEntity".equals(xsiType)) {
PhysicalEntity pe = new PhysicalEntity();
String peId = participant.attribute("id");
pe.setId(peId);
pe.setName(participant.attribute("name"));
pe.setEntityID(extractEntityId(participant));
physicalEntities.put(peId, pe);
}
}
parseMessageFlows(collaboration);
}
}