congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
IParticipantBean.getId
Code IndexAdd Tabnine to your IDE (free)

How to use
getId
method
in
com.ebmwebsourcing.petalsbpm.business.domain.bpmn2.to.api.standard.common.IParticipantBean

Best Java code snippets using com.ebmwebsourcing.petalsbpm.business.domain.bpmn2.to.api.standard.common.IParticipantBean.getId (Showing top 10 results out of 315)

origin: com.ebmwebsourcing.petalsbpm/petalsbpm-domain

@Override
public void visitParticipant(IParticipantBean participant) {
  if(participant.getId().equals(this.id) && bean==null){bean = participant;}
}
@Override
origin: com.ebmwebsourcing.petalsbpm/petalsbpm-domain

public IParticipantBean getParticipantById(String id) {
  for(IParticipantBean p: getParticipants()){
    if(p.getId().equals(id)){
      return p;
    }
  }
  return null;
}

origin: com.ebmwebsourcing.petalsbpm/petalsbpm-domain

@Override
public void visitParticipant(IParticipantBean pool){
  if(pool.getProcess()==null){
    validationErrors.put(pool.getId(), BPMNValidationErrorMessage.EMPTY_POOL.getMessage());
  }
}

origin: com.ebmwebsourcing.petalsbpm/petalsbpm-domain

@Override
public void visitParticipantProcess(IProcessBean proc, IParticipantBean p){
  if(proc.getLanes()==null || proc.getLanes().isEmpty()){
    validationErrors.put(p.getId(), BPMNValidationErrorMessage.EMPTY_POOL.getMessage());
  }
  else{
    if(proc.getEndEvents()!=null && !proc.getEndEvents().isEmpty()){
      if(proc.getStartEvents()==null || proc.getStartEvents().isEmpty()){
        validationErrors.put(p.getId(), BPMNValidationErrorMessage.NO_START.getMessage());
      }
    }
  }
}

origin: com.ebmwebsourcing.petalsbpm/bpmn-diagram

private void process(Set<ChoreographyTaskBean> choreoTasks){
  
  //assign message flow to initiating participant
  for(ChoreographyTaskBean ct:choreoTasks){
    
    ct.setInitiatingMessageFlow(null);
    if (ct.getInitiatingParticipant()!=null){
      
      IParticipantBean source = ct.getInitiatingParticipant();
      IParticipantBean target = getNonInitiatingParticipant(ct);
      
      MessageFlowBean initiatingMessageFlow = new MessageFlowBean("MsgFlow_"+source.getId()+"_"+target.getId());
      initiatingMessageFlow.setSource(source);
      initiatingMessageFlow.setTarget(target);
      ct.setInitiatingMessageFlow(initiatingMessageFlow);
    }
    
  }
  
}

origin: com.ebmwebsourcing.petalsbpm/petalsbpm-service

@Override
public void visitSubChoreography(ISubChoreographyBean subChor){
  SubChoreography sc = newInstance(SubChoreography.class);
  sc.setId(subChor.getId());
  setDocumentationAndExtensions(sc, subChor);
  sc.setLoopType(retrieveChoreographyLoopType(subChor.getChoreographyLoopType()));
  sc.setInitiatingParticipantRef(new QName(subChor.getInitiatingParticipant().getId()));
  sc.setName(subChor.getName());
  if(subChor.getParticipants()!=null){
    for(IParticipantBean p : subChor.getParticipants()){
      sc.addParticipantRef(new QName(p.getId()));
    }
  }
  
  currentFlowElementContainer.peek().addFlowElement(sc);
  currentFlowElementContainer.push(sc);
  currentArtifactContainer.push(sc);
}

origin: com.ebmwebsourcing.petalsbpm/petalsbpm-service

@Override
public void visitChoreographyTask(IChoreographyTaskBean cTask){
  ChoreographyTask ct = newInstance(ChoreographyTask.class);
  ct.setId(cTask.getId());
  ct.setName(cTask.getName());
  setDocumentationAndExtensions(ct, cTask);
  ct.setLoopType(retrieveChoreographyLoopType(cTask.getChoreographyLoopType()));
  ct.setInitiatingParticipantRef(new QName(cTask.getInitiatingParticipant().getId()));
  if(cTask.getParticipants()!=null){
    for(IParticipantBean p : cTask.getParticipants()){
      ct.addParticipantRef(new QName(p.getId()));
    }
  }
  if(cTask.getInitiatingMessageFlow()!=null){
    ct.addMessageFlowRef(new QName(cTask.getInitiatingMessageFlow().getId()));
  }
  if(cTask.getReturnMessageFlow()!=null){
    ct.addMessageFlowRef(new QName(cTask.getReturnMessageFlow().getId()));
  }
  
  currentFlowElementContainer.peek().addFlowElement(ct);
}

origin: com.ebmwebsourcing.petalsbpm/petalsbpm-service

@Override
public void visitParticipant(IParticipantBean participantBean) {
  Participant participant = newInstance(Participant.class);
  participant.setId(participantBean.getId());
  participant.setName(participantBean.getName());
  if(participantBean.getProcess()!=null){
    participant.setProcessRef(getBaseElementRef(participantBean.getProcess()));
  }
  
  setDocumentationAndExtensions(participant, participantBean);
  currentCollaboration.addParticipant(participant);
  
  currentParticipant = participant;
}

origin: com.ebmwebsourcing.petalsbpm/bpmn-diagram

MessageFlowBean returnMessageFlow = new MessageFlowBean("MsgFlow_"+sourceParticipant.getId()+"_"+choreoTask.getInitiatingParticipant().getId());
origin: com.ebmwebsourcing.petalsbpm/bpmn-deployer

protected ProcessChoosingPanel(IDefinitionsBean defs) {
  setTitle("Choose the processes that will be deployed");
  setAutoScroll(true);
  setLayout(new FitLayout());
  setBorder(false);
  processTreeNodes = new HashSet<ProcessTreeNode>();
  diagramPanel = new TreePanel("BPMN Diagram");
  diagramPanel.setAutoScroll(true);
  diagramPanel.setBorder(false);
  diagramPanel.setEnableDD(true);
  TreeNode rootNode = new TreeNode(((defs.getName()==null || defs.getName().isEmpty()) ? "Diagram" : defs.getName()));
  rootNode.setExpanded(true);
  rootNode.setAllowDrop(false);
  rootNode.setAllowDrag(false);
  diagramPanel.setRootNode(rootNode);
  for(IParticipantBean participant : defs.getCollaborations().get(0).getParticipants()){
    //skip empty/collapsed pools
    if(participant.getProcess()==null || participant.getProcess().getFlowNodes().isEmpty()) continue;
    
    TreeNode poolNode = new ProcessTreeNode(participant.getProcess());
    poolNode.setChecked(false);
    poolNode.setAllowDrag(false);
    String text = (participant.getName()==null ? participant.getId() : participant.getName());
    poolNode.setText(text);
    poolNode.setIcon(POOL_ICON);
    rootNode.appendChild(poolNode);
  }
  this.add(diagramPanel);
}
com.ebmwebsourcing.petalsbpm.business.domain.bpmn2.to.api.standard.commonIParticipantBeangetId

Popular methods of IParticipantBean

  • getProcess
  • getName
  • getInterfaces
  • getDocumentation
  • getEndPoints
  • setDocumentation
  • setInterfaces
  • setMaximumMultiplicity
  • setMinimumMultiplicity
  • setName
  • setParentCollaborationBean
  • setParentCollaborationBean

Popular in Java

  • Finding current android device location
  • scheduleAtFixedRate (Timer)
  • addToBackStack (FragmentTransaction)
  • setScale (BigDecimal)
  • Table (com.google.common.collect)
    A collection that associates an ordered pair of keys, called a row key and a column key, with a sing
  • Font (java.awt)
    The Font class represents fonts, which are used to render text in a visible way. A font provides the
  • FileReader (java.io)
    A specialized Reader that reads from a file in the file system. All read requests made by calling me
  • Enumeration (java.util)
    A legacy iteration interface.New code should use Iterator instead. Iterator replaces the enumeration
  • JFrame (javax.swing)
  • JOptionPane (javax.swing)
  • Top Sublime Text plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now