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

How to use
getProcess
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.getProcess (Showing top 14 results out of 315)

origin: com.ebmwebsourcing.petalsbpm/petalsbpm-domain

public IParticipantBean getParticipantByProcess(IProcessBean process){
  
  for(IParticipantBean p:participants){
    if (p.getProcess()!=null){
      if (p.getProcess().equals(process)){
        return p;
      }
    }
  }
  
  return null;
}
origin: com.ebmwebsourcing.petalsbpm/petalsbpm-domain

public List<IFlowElementBean> getFlowNodes(){
  List<IFlowElementBean> result = null;
  if(participants!=null && participants.size()!=0){
    result = new ArrayList<IFlowElementBean>();
    for(IParticipantBean Participant : participants){
      if(Participant.getProcess()!=null){
        result.addAll(Participant.getProcess().getFlowNodes());
      }
    }
  }
  return result;
}
public IFlowElementBean getFlowNode(String id){
origin: com.ebmwebsourcing.petalsbpm/petalsbpm-domain

private IParticipantBean findEnclosingPool(IInteractionNodeBean iInteractionNodeBean){
  for(IParticipantBean pool : currentCollab.getParticipants()){
    if(pool.getProcess()!=null && pool.getProcess().getFlowNodes().contains(iInteractionNodeBean)){
      return pool;
    }
  }
  return null;
}

origin: com.ebmwebsourcing.petalsbpm/petalsbpm-domain

public IFlowElementBean getFlowNode(String id){
  if(participants!=null && participants.size()!=0){
    for(IParticipantBean Participant : participants){
      if(Participant.getProcess()!=null){
        IFlowElementBean node = searchNodeById(Participant.getProcess().getFlowNodes(),id);
        if(node!=null){
          return node;
        }
      }
    }
  }
  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

public void sync(ICollaborationBean c){
  for(IParticipantBean p:c.getParticipants()){
    if(p.getProcess()!=null) {
      addProcess(p.getProcess());
    }
  }
  for(IMessageBean m:c.getMessages()){
    addMessage(m);
  }
}

origin: com.ebmwebsourcing.petalsbpm/bpmn-diagram

private void initModel(){
  IWatchedModelProxy<CollaborationBean> proxy = (IWatchedModelProxy<CollaborationBean>) defaultParticipantEditorModel;
  CollaborationBean collaboration = proxy.getBindedModel();
  this.defaultParticipant = DefaultParticipants.getDefaultParticipant(collaboration);
  this.defaultLane		= new LaneBean();
  this.defaultParticipant.getProcess().getLanes().clear();
  this.defaultParticipant.getProcess().addLane(defaultLane);
}
origin: com.ebmwebsourcing.petalsbpm/petalsbpm-domain

public void addParticipant(IParticipantBean participant){
  if (participants.contains(participant)==false){
    participant.setParentCollaborationBean(this);
    participants.add(participant);
    if (getParentDefinitions()!=null) getParentDefinitions().addProcess(participant.getProcess());
  }
}

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

@Override
public void initializeWatchedModel(
    DefaultParticipantEditorModel watchedModel,
    CollaborationBean modelToBind) {
  this.initialized = false;
  if(!modelToBind.getParticipants().isEmpty()) {
    for(IParticipantBean p : modelToBind.getParticipants()) {
      if(p.getProcess()!=null && !p.getProcess().getFlowNodes().isEmpty()) {
        this.participant = p;
        break;
      }
    }
  }
  modelToBind.addParticipant(participant);
  DefaultParticipants.setDefaultParticipant(modelToBind, participant);
  watchedModel.setName(participant.getName());
  watchedModel.setDocumentation(participant.getDocumentation());
  watchedModel.setInterfaces(participant.getInterfaces());
  this.initialized = true;
}
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);
}
origin: com.ebmwebsourcing.petalsbpm/petalsbpm-domain

this.visitParticipant(p);
if(p.getProcess()!=null){
  IProcessBean proc = p.getProcess();
  this.visitParticipantProcess(proc,p);
origin: com.ebmwebsourcing.petalsbpm/bpmn-diagram

defaultParticipant.getProcess().clearFlowElements();
defaultParticipant.getProcess().clearIOSpec();
  s.setTargetNode((IFlowElementBean) ((IEdge)di).getTarget().getModelElement());
  defaultParticipant.getProcess().addSequenceFlow(s);
origin: com.ebmwebsourcing.petalsbpm/petalsbpm-service

if(((IParticipantBean) shape.getModelElement()).getProcess()!=null) {
  pools.put((IParticipantBean) shape.getModelElement(), shape.getBounds());
if(p.getProcess().getLanes().contains(shape.getModelElement())) {
  IBounds poolBounds = pools.get(p);
  Bounds laneBounds = result.getBounds();
com.ebmwebsourcing.petalsbpm.business.domain.bpmn2.to.api.standard.commonIParticipantBeangetProcess

Popular methods of IParticipantBean

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

Popular in Java

  • Start an intent from android
  • setRequestProperty (URLConnection)
  • requestLocationUpdates (LocationManager)
  • getExternalFilesDir (Context)
  • 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
  • InetAddress (java.net)
    An Internet Protocol (IP) address. This can be either an IPv4 address or an IPv6 address, and in pra
  • List (java.util)
    An ordered collection (also known as a sequence). The user of this interface has precise control ove
  • Pattern (java.util.regex)
    Patterns are compiled regular expressions. In many cases, convenience methods such as String#matches
  • JComboBox (javax.swing)
  • Options (org.apache.commons.cli)
    Main entry-point into the library. Options represents a collection of Option objects, which describ
  • Top Vim 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