Tabnine Logo
MessageFlowBean.setTarget
Code IndexAdd Tabnine to your IDE (free)

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

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

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() {
  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/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/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/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/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

returnMessageFlow.setTarget(choreoTask.getInitiatingParticipant());
origin: com.ebmwebsourcing.petalsbpm/bpmn-diagram

MessageFlowBean mf = messageFlows.get(di);
mf.setSource((IInteractionNodeBean) ((IEdge)di).getSource().getModelElement());
mf.setTarget((IInteractionNodeBean) ((IEdge)di).getTarget().getModelElement());
collaboration.addMessageFlow(mf);
com.ebmwebsourcing.petalsbpm.business.domain.bpmn2.to.standard.commonMessageFlowBeansetTarget

Popular methods of MessageFlowBean

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

Popular in Java

  • Making http requests using okhttp
  • compareTo (BigDecimal)
  • onRequestPermissionsResult (Fragment)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • Window (java.awt)
    A Window object is a top-level window with no borders and no menubar. The default layout for a windo
  • PrintStream (java.io)
    Fake signature of an existing Java class.
  • Permission (java.security)
    Legacy security code; do not use.
  • Connection (java.sql)
    A connection represents a link from a Java application to a database. All SQL statements and results
  • HashMap (java.util)
    HashMap is an implementation of Map. All optional operations are supported.All elements are permitte
  • HashSet (java.util)
    HashSet is an implementation of a Set. All optional operations (adding and removing) are supported.
  • Top PhpStorm 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