当前位置: 首页>>代码示例>>Java>>正文


Java ParticipantProcess类代码示例

本文整理汇总了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);
  }
}
 
开发者ID:iotsap,项目名称:FiWare-Template-Handler,代码行数:37,代码来源:BpmnParse.java


注:本文中的org.activiti.engine.impl.pvm.process.ParticipantProcess类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。