Tabnine Logo
ParticipantBean
Code IndexAdd Tabnine to your IDE (free)

How to use
ParticipantBean
in
com.ebmwebsourcing.petalsbpm.business.domain.bpmn2.to.standard.common

Best Java code snippets using com.ebmwebsourcing.petalsbpm.business.domain.bpmn2.to.standard.common.ParticipantBean (Showing top 16 results out of 315)

origin: com.ebmwebsourcing.petalsbpm/petalsbpm-domain

public ParticipantBean createPool(String poolId,String poolName){
  ParticipantBean result = new ParticipantBean(poolId);
  result.setName(poolName);
  process.setName(result.getName().replace(" ","")+"Process");
  process.setType(ProcessTypes.NONE);
  result.setProcess(process);
origin: com.ebmwebsourcing.petalsbpm/petalsbpm-service

private static ParticipantBean adaptParticipant(Participant participant, CollaborationBean c, DefinitionsBean defs) {
  ParticipantBean result = new ParticipantBean(participant.getId());
  
  result.setName(participant.getName());
  result.setInterfaces(findInterfaces(defs, participant.getInterfaceRef()));
  result.setEndPoints(findEndPoints(defs, participant.getEndPointRef()));
  if(participant.getProcessRef()!=null){
    IProcessBean pBean = findProcess(defs, participant.getProcessRef().getLocalPart());
    result.setProcess(pBean);
    pBean.setDefinitionalCollaboration(c);
  }
  else {
    result.setProcess(null);
  }
  setDocumentationAndExtensions(result, participant);
  
  c.addParticipant(result);
  elements.put(result.getId(), result);
  
  return result;
}

origin: com.ebmwebsourcing.petalsbpm/bpmn-diagram

  /**
   * Info: Pool syntax model is built in LaneSyntaxModelBinder
   */
  public void bindSyntaxModel(IModelElement diagramElementSyntaxModel,
      IEditorModel editorModel, IDiagramElement diagramElement) {
    
    
    ParticipantBean participantBean     = (ParticipantBean) diagramElementSyntaxModel;
    PoolEditorModel poolEditorModel     = (PoolEditorModel) editorModel;
    

    
    participantBean.setName(poolEditorModel.getName());
    participantBean.setDocumentation(poolEditorModel.getDocumentation());
    participantBean.setInterfaces(poolEditorModel.getInterfaces());
    
//        if (poolEditorModel.getParticipantMultiplicityMax()!=null) participantBean.setMaximumMultiplicity(Integer.parseInt(poolEditorModel.getParticipantMultiplicityMax()));
//        if (poolEditorModel.getParticipantMultiplicityMin()!=null) participantBean.setMinimumMultiplicity(Integer.parseInt(poolEditorModel.getParticipantMultiplicityMin()));
//        

    
  
  }

origin: com.ebmwebsourcing.petalsbpm/petalsbpm-domain

ParticipantBean participant = new ParticipantBean(IdGenerator.createUniqueId());
participant.setInterfaces(interfaces);
participant.setProcess(process);
origin: com.ebmwebsourcing.petalsbpm/bpmn-diagram

@Override
public void onInstantiation(DefaultParticipantEditorModel watchedModel,
    CollaborationBean modelToBind) {
  this.participant = new ParticipantBean();
  this.initialized = false;
}
origin: com.ebmwebsourcing.petalsbpm/petalsbpm-domain

public ParticipantBean(String id){
  super(id);
  this.setInterfaces(new ArrayList<IInterfaceBean>());
  this.process = new ProcessBean();
  endPoints = new ArrayList<IEndPointBean>();
  minimumMultiplicity = 0;
  maximumMultiplicity = 1;
}

origin: com.ebmwebsourcing.petalsbpm/bpmn-diagram

@Override
public ParticipantBean getSyntaxModel() {
  ParticipantBean participant   = (ParticipantBean) getMainDiagramElement().getModelElement();
  //clean participants process first
  participant.getProcess().getLanes().clear();
  participant.getProcess().clearFlowElements();
  participant.getProcess().clearIOSpec();
  
  //add all lanes (recursively) into participants process
  HashSet<LaneBean> lanes = (HashSet<LaneBean>) this.getAll(LaneBean.class, true);
  
  for(LaneBean lane:lanes){
    participant.getProcess().addLane(lane);
  }
  
  
  //grab all sequence flows
  HashMap<IDiagramElement,SequenceFlowBean> sequenceFlows = (HashMap<IDiagramElement, SequenceFlowBean>) this.getEdges(SequenceFlowBean.class);
  
  for(IDiagramElement di:sequenceFlows.keySet()){
    
    SequenceFlowBean s = sequenceFlows.get(di);
    s.setSourceNode((IFlowElementBean) ((IEdge)di).getSource().getModelElement());
    s.setTargetNode((IFlowElementBean) ((IEdge)di).getTarget().getModelElement());
    
    participant.getProcess().addSequenceFlow(s);
  }
  
  return participant;
}
origin: com.ebmwebsourcing.petalsbpm/petalsbpm-service

for(Participant p : chor.getParticipant()){
  ParticipantBean pBean = adaptParticipant(p,cBean,def);
  elements.put(pBean.getId(), pBean);
origin: com.ebmwebsourcing.petalsbpm/bpmn-diagram

@Override
public Set<IDiagramElement> getChildrenDIModels() {
  
  HashSet<IDiagramElement> children = new HashSet<IDiagramElement>();
  
  BPMNShape p1Shape = GWT.create(BPMNShape.class);
  p1Shape.setParticipantBandKind(ParticipantBandKind.top_initiating);
  p1Shape.setY(1);
  p1Shape.setChoreographyActivityShape((IBPMNShape) getDiagramElement());
  
  ParticipantBean p1Bean = new ParticipantBean();
  p1Shape.setModelElement(p1Bean);
  
  BPMNShape p2Shape = GWT.create(BPMNShape.class);
  p2Shape.setParticipantBandKind(ParticipantBandKind.bottom_non_initiating);
  p2Shape.setY(getMiddle()+1);
  p2Shape.setModelElement(new ParticipantBean());
  p2Shape.setChoreographyActivityShape((IBPMNShape) getDiagramElement());
  
  children.add(p1Shape);
  children.add(p2Shape);
  
  return children;
}

origin: com.ebmwebsourcing.petalsbpm/bpmn-diagram

if(p.getProcess()!=null) {
  foundPool = foundPool || !p.getProcess().getFlowNodes().isEmpty();
origin: com.ebmwebsourcing.petalsbpm/petalsbpm-domain

private static ParticipantBean buildUpperParticipant(DefinitionsBean globalResult) {
  UPPER_Participant_ID = createUniqueId();
  ParticipantBean result = new ParticipantBean(UPPER_Participant_ID);
  result.setName("Document initiator");
  result.setDocumentation("Participant who initiates the document.");
  
  PartnerRoleBean pr = new PartnerRoleBean(createUniqueId());
  pr.setName(result.getName());
  pr.addParticipant(result);
  globalResult.addPartnerRole(pr);
  
  ProcessBean process = new ProcessBean(createUniqueId());
  process.setName(result.getName().replace(" ","")+"Process");
  process.setType(ProcessTypes.PUBLIC);
  globalResult.addProcess(process);
  result.setProcess(process);
  process.addLane(buildUpperLane(process,globalResult));
  
  return result;
}
origin: com.ebmwebsourcing.petalsbpm/petalsbpm-domain

private static ParticipantBean buildUpperParticipant(DefinitionsBean globalResult) {
  UPPER_Participant_ID = createUniqueId();
  ParticipantBean result = new ParticipantBean(UPPER_Participant_ID);
  result.setName("Sensor Array");
  PartnerRoleBean pr = new PartnerRoleBean(createUniqueId());
  pr.setName(result.getName());
  pr.addParticipant(result);
  
  globalResult.addPartnerRole(pr);
  
  
  ProcessBean process = new ProcessBean(createUniqueId());
  process.setName(result.getName().replace(" ","")+"Process");
  process.setType(ProcessTypes.PUBLIC);
  globalResult.addProcess(process);
  result.setProcess(process);
  process.addLane(buildUpperLane(process, globalResult));
  
  return result;
}
origin: com.ebmwebsourcing.petalsbpm/petalsbpm-domain

private static ParticipantBean buildlowerParticipant(DefinitionsBean globalResult) {
  LOWER_Participant_ID = createUniqueId();
  ParticipantBean result = new ParticipantBean(LOWER_Participant_ID);
  result.setName("Expert Board");
  
  
  PartnerRoleBean pr = new PartnerRoleBean(createUniqueId());
  pr.setName(result.getName());
  pr.addParticipant(result);
  globalResult.addPartnerRole(pr);
  
  ProcessBean process = new ProcessBean(createUniqueId());
  process.setName(result.getName().replace(" ","")+"Process");
  process.setType(ProcessTypes.PUBLIC);
  globalResult.addProcess(process);
  result.setProcess(process);
  process.addLane(buildLowerLane(process, globalResult));
  
  return result;
}

origin: com.ebmwebsourcing.petalsbpm/petalsbpm-domain

private static ParticipantBean buildLowerParticipant(DefinitionsBean globalResult) {
  LOWER_Participant_ID = createUniqueId();
  ParticipantBean result = new ParticipantBean(LOWER_Participant_ID);
  result.setName("Document Writer");
  
  PartnerRoleBean pr = new PartnerRoleBean(createUniqueId());
  pr.setName(result.getName());
  pr.addParticipant(result);
  globalResult.addPartnerRole(pr);
  
  ProcessBean process = new ProcessBean(createUniqueId());
  process.setName(result.getName().replace(" ","")+"Process");
  process.setType(ProcessTypes.PUBLIC);
  globalResult.addProcess(process);
  result.setProcess(process);
  process.addLane(buildLowerLane1(process,globalResult));
  process.addLane(buildLowerLane2(process));
  
  return result;
}

origin: com.ebmwebsourcing.petalsbpm/petalsbpm-domain

private static ParticipantBean buildlowerParticipant(DefinitionsBean globalResult) {
  
  LOWER_Participant_ID = createUniqueId();
  
  ParticipantBean result = new ParticipantBean(LOWER_Participant_ID);
  result.setName("VO memberS");
  
  PartnerRoleBean pr = new PartnerRoleBean(createUniqueId());
  pr.setName(result.getName());
  pr.addParticipant(result);
  globalResult.addPartnerRole(pr);
  
  ProcessBean process = new ProcessBean(createUniqueId());
  process.setName(process.getId());
  process.setType(ProcessTypes.PUBLIC);
  globalResult.addProcess(process);
  result.setProcess(process);
  process.addLane(buildLowerLane(process,globalResult));
  
  return result;
}

origin: com.ebmwebsourcing.petalsbpm/petalsbpm-domain

  private static ParticipantBean buildUpperParticipant(DefinitionsBean globalResult) {
    
    UPPER_Participant_ID = createUniqueId();
    ParticipantBean result = new ParticipantBean(UPPER_Participant_ID);
    result.setName("VO member (idea creator)");

//        InterfaceBean itfBean = new InterfaceBean(createUniqueId());
//        itfBean.setName(result.getId()+"Itf");
////        itfBean.setOperations();
//        globalResult.addInterface(itfBean);
//        result.addInterface(itfBean);
    
    PartnerRoleBean pr = new PartnerRoleBean(createUniqueId());
    pr.setName(result.getName());
    pr.addParticipant(result);
    globalResult.addPartnerRole(pr);
    
    ProcessBean process = new ProcessBean(createUniqueId());
    process.setName(process.getId());
    process.setType(ProcessTypes.PUBLIC);
    globalResult.addProcess(process);
    result.setProcess(process);
    process.addLane(buildUpperLane(process,globalResult));
    
    return result;
  }
  
com.ebmwebsourcing.petalsbpm.business.domain.bpmn2.to.standard.commonParticipantBean

Most used methods

  • <init>
  • setInterfaces
  • setName
  • setDocumentation
  • setProcess
  • getId
  • getName
  • getProcess
  • setEndPoints

Popular in Java

  • Finding current android device location
  • onCreateOptionsMenu (Activity)
  • getExternalFilesDir (Context)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • System (java.lang)
    Provides access to system-related information and resources including standard input and output. Ena
  • Connection (java.sql)
    A connection represents a link from a Java application to a database. All SQL statements and results
  • Notification (javax.management)
  • SSLHandshakeException (javax.net.ssl)
    The exception that is thrown when a handshake could not be completed successfully.
  • Response (javax.ws.rs.core)
    Defines the contract between a returned instance and the runtime when an application needs to provid
  • Get (org.apache.hadoop.hbase.client)
    Used to perform Get operations on a single row. To get everything for a row, instantiate a Get objec
  • Best IntelliJ 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