Tabnine Logo
MActivity.addIncomingSequenceEdge
Code IndexAdd Tabnine to your IDE (free)

How to use
addIncomingSequenceEdge
method
in
jadex.bpmn.model.MActivity

Best Java code snippets using jadex.bpmn.model.MActivity.addIncomingSequenceEdge (Showing top 7 results out of 315)

origin: net.sourceforge.jadex/jadex-model-bpmn

act.addIncomingSequenceEdge(edge);
origin: net.sourceforge.jadex/jadex-model-bpmn

/**
 *  Helper method connecting two activities using this edge.
 *  The previous connection is removed.
 * 
 *  @param source New source of the edge.
 *  @param target New target of the edge.
 */
public void connect(MActivity source, MActivity target)
{
  if (this.source != null)
  {
    this.source.removeOutgoingSequenceEdge(this);
  }
  
  if (this.target != null)
  {
    this.target.removeIncomingSequenceEdge(this);
  }
  
  this.source = source;
  this.target = target;
  
  source.addOutgoingSequenceEdge(this);
  target.addIncomingSequenceEdge(this);
}
 
origin: net.sourceforge.jadex/jadex-model-bpmn

tgt.addIncomingSequenceEdge(edge);
origin: org.activecomponents.jadex/jadex-editor-bpmn

act.addIncomingSequenceEdge(edge);
edge.setTarget(act);
origin: net.sourceforge.jadex/jadex-kernel-bpmn

act.addIncomingSequenceEdge(edge);
edge.setTarget(act);
origin: org.activecomponents.jadex/jadex-editor-bpmn

  /**
   *  Sets the target.
   */
  public void setTarget(mxICell target)
  {
    if (getBpmnElement() != null)
    {
      MSequenceEdge medge = (MSequenceEdge) getBpmnElement();
      if (getTarget() != null)
      {
        ((MActivity) ((VActivity) getTarget()).getBpmnElement()).removeIncomingSequenceEdge(medge);
        medge.setTarget(null);
      }
      
      if (target != null)
      {
        MActivity mtarget = (MActivity) ((VActivity) target).getBpmnElement();
        mtarget.addIncomingSequenceEdge(medge);
        
        medge.setTarget(mtarget);
      }
    }
    super.setTarget(target);
  }
}
origin: net.sourceforge.jadex/jadex-kernel-bpmn

        public void run()
        {
          // To schedule a step an implicit activity is created.
          // In order to put the step parameter value it is necessary
          // to have an edge with a mapping. Otherwise the parameter
          // value with be deleted in process thread updateParametersBeforeStep().
          
          MActivity act = new MActivity();
          act.setName("External Step Activity: "+(cnt++));
          act.setClazz(new ClassInfo(ExecuteStepTask.class));
          act.addParameter(new MParameter(MParameter.DIRECTION_IN, new ClassInfo(Object[].class), "step", null));
          act.setActivityType(MBpmnModel.TASK);
          MSequenceEdge edge = new MSequenceEdge();
          edge.setTarget(act);
          UnparsedExpression exp = new UnparsedExpression(null, (Class<?>) null, "step", null);
          SJavaParser.parseExpression(exp, null, null);
//                    edge.addParameterMapping("step", SJavaParser.parseExpression("step", null, null), null);
          edge.addParameterMapping("step", exp, null);
          act.addIncomingSequenceEdge(edge);
          MPool pl = pool!=null? bpmnmodel.getPool(pool): (MPool)bpmnmodel.getPools().get(0);
          act.setPool(pl);
          ProcessThread thread = new ProcessThread(""+idcnt++, act, context, BpmnInterpreter.this);
          thread.setLastEdge(edge);
          thread.setParameterValue("step", new Object[]{step, ret});
          context.addExternalThread(thread);
        }
      });
jadex.bpmn.modelMActivityaddIncomingSequenceEdge

Javadoc

Add an incoming edge.

Popular methods of MActivity

  • getActivityType
    Get the activity type.
  • getId
  • getName
  • <init>
  • addIncomingMessagingEdge
    Add an incoming message edge.
  • addOutgoingMessagingEdge
    Add an outgoing message edge.
  • addOutgoingSequenceEdge
    Add an outgoing edge.
  • addParameter
    Add a parameter.
  • getClazz
    Get the class.
  • getEventHandlers
    Get the event handlers.
  • getIncomingSequenceEdges
    Get the incoming edges.
  • getLane
    Get the lane of the activity.
  • getIncomingSequenceEdges,
  • getLane,
  • getOutgoingSequenceEdges,
  • getParameters,
  • getProperties,
  • getPropertyValue,
  • isEventHandler,
  • isThrowing,
  • setActivityType

Popular in Java

  • Running tasks concurrently on multiple threads
  • setScale (BigDecimal)
  • onRequestPermissionsResult (Fragment)
  • startActivity (Activity)
  • Permission (java.security)
    Legacy security code; do not use.
  • Deque (java.util)
    A linear collection that supports element insertion and removal at both ends. The name deque is shor
  • HashMap (java.util)
    HashMap is an implementation of Map. All optional operations are supported.All elements are permitte
  • Queue (java.util)
    A collection designed for holding elements prior to processing. Besides basic java.util.Collection o
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • JTable (javax.swing)
  • Top plugins for Android Studio
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