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

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

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

origin: com.ebmwebsourcing.petalsbpm/petalsbpm-service

  private static MessageFlowBean adaptMessageFlow(MessageFlow mf, CollaborationBean cBean, DefinitionsBean defs) {
    MessageFlowBean mfBean = new MessageFlowBean(mf.getId());
    mfBean.setName(mf.getName());
    setDocumentationAndExtensions(mfBean, mf);
    if(mf.getMessageRef()!=null){
      mfBean.setMessage(defs.getMessageById(mf.getMessageRef().getLocalPart()));
    }
    if(mf.getSourceRef()!=null){
//            mfBean.setSource((IInteractionNodeBean) cBean.getFlowNode(mf.getSourceRef().getLocalPart()));
      mfBean.setSource((IInteractionNodeBean) elements.get(mf.getSourceRef().getLocalPart()));
    }
    if(mf.getTargetRef()!=null){
//            mfBean.setTarget((IInteractionNodeBean) cBean.getFlowNode(mf.getTargetRef().getLocalPart()));
      mfBean.setTarget((IInteractionNodeBean) elements.get(mf.getTargetRef().getLocalPart()));
    }
    
    cBean.addMessageFlow(mfBean);
    elements.put(mfBean.getId(), mfBean);
    
    return mfBean;
  }

origin: com.ebmwebsourcing.petalsbpm/petalsbpm-domain

private static List<IMessageFlowBean> buildMessageFlows() {
  ArrayList<IMessageFlowBean> result = new ArrayList<IMessageFlowBean>();
  
  MF_1_ID = createUniqueId();
  MessageFlowBean messageFlow1 = new MessageFlowBean(MF_1_ID);
  messageFlow1.setSource((IInteractionNodeBean) MFsource);
  messageFlow1.setTarget((IInteractionNodeBean) MFtarget);
  
  result.add(messageFlow1);
  
  return result;
}
origin: com.ebmwebsourcing.petalsbpm/petalsbpm-domain

private static List<IMessageFlowBean> buildMessageFlows() {
  List<IMessageFlowBean> result = new ArrayList<IMessageFlowBean>();
  
  MessageFlowBean messageFlow1 = new MessageFlowBean(createUniqueId());
  MF_1_ID = messageFlow1.getId();
  messageFlow1.setSource((IInteractionNodeBean) upperParticipantNodes.get(0));
  messageFlow1.setTarget((IInteractionNodeBean) lowerParticipantNodes.get(0));
  
  MessageFlowBean messageFlow2 = new MessageFlowBean(createUniqueId());
  MF_2_ID = messageFlow2.getId();
  messageFlow2.setSource((IInteractionNodeBean) lowerParticipantNodes.get(1));
  messageFlow2.setTarget((IInteractionNodeBean) upperParticipantNodes.get(1));
  
  MessageFlowBean messageFlow3 = new MessageFlowBean(createUniqueId());
  MF_3_ID = messageFlow3.getId();
  messageFlow3.setSource((IInteractionNodeBean) upperParticipantNodes.get(2));
  messageFlow3.setTarget((IInteractionNodeBean) lowerParticipantNodes.get(2));
  
  result.add(messageFlow1);
  result.add(messageFlow2);
  result.add(messageFlow3);
  
  return result;
}

origin: com.ebmwebsourcing.petalsbpm/bpmn-diagram

public void bindSyntaxModel(IModelElement diagramElementSyntaxModel,
    IEditorModel editorModel, IDiagramElement diagramElement) {
  
  
  MessageFlowBean bean = (MessageFlowBean) diagramElementSyntaxModel;
  MessageFlowEditorModel eModel = (MessageFlowEditorModel) editorModel;
  
  bean.setName(eModel.getName());
  bean.setDocumentation(eModel.getDocumentation());
  bean.setMessage(eModel.getMessage());
  
  //set target and source
  IBPMNEdge messageFlowEdge = (IBPMNEdge) diagramElement;
  
  IBPMNShape source = (IBPMNShape) messageFlowEdge.getSource();
  
  IBPMNShape target = (IBPMNShape) messageFlowEdge.getTarget();
  
  if (source!=null){
    if (source.getModelElement() instanceof IInteractionNodeBean) bean.setSource((IInteractionNodeBean)source.getModelElement());
  }
  if (target!=null){
    if (target.getModelElement() instanceof IInteractionNodeBean) bean.setTarget((IInteractionNodeBean)target.getModelElement());
  }
  
}
origin: com.ebmwebsourcing.petalsbpm/bpmn-diagram

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

for(IDiagramElement di : messageFlows.keySet()){
  MessageFlowBean mf = messageFlows.get(di);
  mf.setSource((IInteractionNodeBean) ((IEdge)di).getSource().getModelElement());
  mf.setTarget((IInteractionNodeBean) ((IEdge)di).getTarget().getModelElement());
  collaboration.addMessageFlow(mf);
origin: com.ebmwebsourcing.petalsbpm/petalsbpm-service

for(MessageFlow mf : chor.getMessageFlow()){
  MessageFlowBean mfb = adaptMessageFlow(mf,cBean,def);
  elements.put(mfb.getId(), mfb);
origin: com.ebmwebsourcing.petalsbpm/petalsbpm-domain

private static List<IMessageFlowBean> buildMessageFlows() {
  ArrayList<IMessageFlowBean> result = new ArrayList<IMessageFlowBean>();
  
  MF_1_ID = createUniqueId();
  MessageFlowBean messageFlow1 = new MessageFlowBean(MF_1_ID);
  messageFlow1.setSource((IInteractionNodeBean) upperParticipantNodes.get(0));
  messageFlow1.setTarget((IInteractionNodeBean) lowerParticipantNodes.get(0));
  
  MF_2_ID = createUniqueId();
  MessageFlowBean messageFlow2 = new MessageFlowBean(MF_2_ID);
  messageFlow2.setSource((IInteractionNodeBean) lowerParticipantNodes.get(1));
  messageFlow2.setTarget((IInteractionNodeBean) upperParticipantNodes.get(1));
  
  MF_3_ID = createUniqueId();
  MessageFlowBean messageFlow3 = new MessageFlowBean(MF_3_ID);
  messageFlow3.setSource((IInteractionNodeBean) lowerParticipantNodes.get(2));
  messageFlow3.setTarget((IInteractionNodeBean) upperParticipantNodes.get(1));
  
  result.add(messageFlow1);
  result.add(messageFlow2);
  result.add(messageFlow3);
  
  return result;
}
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);
    }
    
  }
  
}

com.ebmwebsourcing.petalsbpm.business.domain.bpmn2.to.standard.commonMessageFlowBean

Most used methods

  • <init>
  • setSource
  • setTarget
  • getId
  • setMessage
  • setName
  • setDocumentation

Popular in Java

  • Making http requests using okhttp
  • requestLocationUpdates (LocationManager)
  • getSharedPreferences (Context)
  • compareTo (BigDecimal)
  • Path (java.nio.file)
  • Collection (java.util)
    Collection is the root of the collection hierarchy. It defines operations on data collections and t
  • Stack (java.util)
    Stack is a Last-In/First-Out(LIFO) data structure which represents a stack of objects. It enables u
  • Manifest (java.util.jar)
    The Manifest class is used to obtain attribute information for a JarFile and its entries.
  • Cipher (javax.crypto)
    This class provides access to implementations of cryptographic ciphers for encryption and decryption
  • JTable (javax.swing)
  • Top plugins for WebStorm
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