Tabnine Logo
ExpressionBean.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
com.ebmwebsourcing.petalsbpm.business.domain.bpmn2.to.standard.process.data.ExpressionBean
constructor

Best Java code snippets using com.ebmwebsourcing.petalsbpm.business.domain.bpmn2.to.standard.process.data.ExpressionBean.<init> (Showing top 11 results out of 315)

origin: com.ebmwebsourcing.petalsbpm/bpmn-diagram

@Override
public void bind(SequenceFlowEditorModel watchedModel,
    SequenceFlowBean modelToBind) {
  IExpressionBean exp = new ExpressionBean();
  exp.setContent(watchedModel.getConditionnalExpression());
  modelToBind.setExpression(exp);
}

origin: com.ebmwebsourcing.petalsbpm/petalsbpm-service

private static ExpressionBean adaptExpression(Expression exp) {
  ExpressionBean expb = new ExpressionBean(exp.getId());
  expb.setContent(exp.getTextContent());
  //setDocumentation(expb, exp);
  return expb;
}
origin: com.ebmwebsourcing.petalsbpm/bpmn-diagram

private void addDefaultAsssignmentExpressions(IDataAssociationBean dab) {
  if(dab.getAssignements().isEmpty()) return;
  IAssignmentBean a = dab.getAssignements().get(0);
  if(a.getFrom()==null || a.getFrom().getContent()==null || a.getFrom().getContent().isEmpty()) {
    IExpressionBean fromExp = new ExpressionBean();
    String fromExpContent = "$"+dab.getSources().get(0).getId();
    fromExp.setContent(fromExpContent);
    a.setFrom(fromExp);
  }
  if(a.getTo()==null || a.getTo().getContent()==null || a.getTo().getContent().isEmpty()) {
    IExpressionBean toExp = new ExpressionBean();
    String toExpContent = "$"+dab.getTarget().getId();
    toExp.setContent(toExpContent);
    a.setTo(toExp);
  }
}
origin: com.ebmwebsourcing.petalsbpm/bpmn-diagram

@Override
public void bind(DataAssociationEditorModel watchedModel,
    DataAssociationBean modelToBind) {
  // 1 - binding of 'to' and 'from' fields of the editor model
  //add an assignment with the 'to' and 'from' expressions
  modelToBind.getAssignements().clear();
  
  IAssignmentBean a = new AssignmentBean();
  modelToBind.addAssignement(a);
  
  IExpressionBean from = new ExpressionBean();
  from.setContent(watchedModel.getFrom());
  a.setFrom(from);
  
  IExpressionBean to = new ExpressionBean();
  to.setContent(watchedModel.getTo());
  a.setTo(to);
  
  // 2 - binding of 'itemDef' property of the editor model
  //set targetItem and sourceItem to the editor model value
  // the builder will use one of them depending if the data association 
  // is a datainputassociation or a dataoutputassociation
  modelToBind.setTargetItem(watchedModel.getItemDef());
  modelToBind.setSourceItem(watchedModel.getItemDef());
}

origin: com.ebmwebsourcing.petalsbpm/bpmn-diagram

public void bindSyntaxModel(IModelElement diagramElementSyntaxModel,
    IEditorModel editorModel, IDiagramElement diagramElement) {
  
  SequenceFlowBean bean = (SequenceFlowBean) diagramElementSyntaxModel;
  SequenceFlowEditorModel eModel = (SequenceFlowEditorModel) editorModel;
  
  bean.setName(eModel.getName());
  bean.setDocumentation(eModel.getDocumentation());
  
  if (eModel.getConditionnalExpression()!=null){
    ExpressionBean exp = new ExpressionBean(IdGenerator.createUniqueId());
    exp.setContent(eModel.getConditionnalExpression());
    bean.setExpression(exp);
  }
  
  //set target and source
  IBPMNEdge sequenceFlowEdge = (IBPMNEdge) diagramElement;
  
  IBPMNShape source = (IBPMNShape) sequenceFlowEdge.getSource();
  
  IBPMNShape target = (IBPMNShape) sequenceFlowEdge.getTarget();
  
  if (source!=null){
    if (source.getModelElement() instanceof IFlowElementBean) bean.setSourceNode((IFlowElementBean) source.getModelElement());
  }
  if (target!=null){
    if (target.getModelElement() instanceof IFlowElementBean) bean.setTargetNode((IFlowElementBean) target.getModelElement());
  }
}
origin: com.ebmwebsourcing.petalsbpm/petalsbpm-domain

sf3.setSourceNode(gateway);
sf3.setTargetNode(task3);
ExpressionBean exp = new ExpressionBean(createUniqueId());
exp.setContent("Real Alert");
sf3.setExpression(exp);
sf4.setSourceNode(gateway);
sf4.setTargetNode(task4);
ExpressionBean exp2 = new ExpressionBean(createUniqueId());
exp2.setContent("Unimportant Alert");
sf4.setExpression(exp2);
origin: com.ebmwebsourcing.petalsbpm/petalsbpm-domain

sf4.setSourceNode(gateway);
sf4.setTargetNode(task4);
ExpressionBean expsf4 = new ExpressionBean(createUniqueId());
expsf4.setContent("Initial idea accepted");
sf4.setExpression(expsf4);
sf5.setTargetNode(task5);
sf5.setName("Comments");
ExpressionBean expsf5 = new ExpressionBean(createUniqueId());
expsf5.setContent("Initial idea rejected");
sf5.setExpression(expsf5);
origin: com.ebmwebsourcing.petalsbpm/petalsbpm-domain

ExpressionBean exp = new ExpressionBean(createUniqueId());
exp.setContent("Mistakes Exists");
sf3.setExpression(exp);
sf4.setSourceNode(gateway);
sf4.setTargetNode(task4);
ExpressionBean exp2 = new ExpressionBean(createUniqueId());
exp2.setContent("No Mistakes");
sf4.setExpression(exp2);
origin: com.ebmwebsourcing.petalsbpm/petalsbpm-domain

sf7.setSourceNode(gateway);
sf7.setTargetNode(task6);
ExpressionBean expsf7 = new ExpressionBean(createUniqueId());
expsf7.setContent("Initial idea accepted");
sf7.setExpression(expsf7);
sf8.setSourceNode(gateway);
sf8.setTargetNode(task7);
ExpressionBean expsf8 = new ExpressionBean(createUniqueId());
expsf8.setContent("Initial idea rejected");
sf8.setExpression(expsf8);
origin: com.ebmwebsourcing.petalsbpm/petalsbpm-domain

sf6.setSourceNode(gateway);
sf6.setTargetNode(task);
ExpressionBean exp = new ExpressionBean(createUniqueId());
exp.setContent("Alert confirmed");
sf6.setExpression(exp);
sf7.setSourceNode(gateway);
sf7.setTargetNode(task5);
ExpressionBean exp2 = new ExpressionBean(createUniqueId());
exp2.setContent("Alert cancelled");
sf7.setExpression(exp2);
origin: com.ebmwebsourcing.petalsbpm/petalsbpm-domain

ExpressionBean expSF4 = new ExpressionBean(IdGenerator.createUniqueId());
expSF4.setContent("Rejected");
sf4.setExpression(expSF4);
ExpressionBean expSF5 = new ExpressionBean(IdGenerator.createUniqueId());
expSF5.setContent("Approved");
sf5.setExpression(expSF5);
com.ebmwebsourcing.petalsbpm.business.domain.bpmn2.to.standard.process.dataExpressionBean<init>

Popular methods of ExpressionBean

  • setContent

Popular in Java

  • Start an intent from android
  • runOnUiThread (Activity)
  • getSharedPreferences (Context)
  • getSystemService (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
  • List (java.util)
    An ordered collection (also known as a sequence). The user of this interface has precise control ove
  • BlockingQueue (java.util.concurrent)
    A java.util.Queue that additionally supports operations that wait for the queue to become non-empty
  • BoxLayout (javax.swing)
  • Response (javax.ws.rs.core)
    Defines the contract between a returned instance and the runtime when an application needs to provid
  • LoggerFactory (org.slf4j)
    The LoggerFactory is a utility class producing Loggers for various logging APIs, most notably for lo
  • 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