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

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

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

origin: org.activecomponents.jadex/jadex-editor-bpmn

  public void actionPerformed(ActionEvent e)
  {
    String mode = ((JMenuItem) e.getSource()).getName();
    ((MActivity) gateway.getBpmnElement()).setActivityType(mode);
    modelcontainer.getGraph().refreshCellView(gateway);
  }
};
origin: org.activecomponents.jadex/jadex-editor-bpmn

      public void actionPerformed(ActionEvent e)
      {
        String mode = ((JMenuItem) e.getSource()).getName();
        String type = ModelContainer.ACTIVITY_MODES_TO_TYPES.get(mode);
        if (type == null)
        {
          type = mode;
        }
        
        ((MActivity) event.getBpmnElement()).setActivityType(type);
        ((MActivity) event.getBpmnElement()).setThrowing(mode.endsWith(ModelContainer.THROWING_EVENT));
//                modelcontainer.setPropertyPanel(SPropertyPanelFactory.createPanel(event, modelcontainer));
        modelcontainer.setPropertyPanel(modelcontainer.getSettings().getPropertyPanelFactory().createPanel(modelcontainer, event));
        modelcontainer.getGraph().refreshCellView(event);
      }
    };
origin: net.sourceforge.jadex/jadex-model-bpmn

act.setActivityType(ACT_TYPE_MAPPING.get(tag.getLocalPart()));
evt.setActivityType(acttype);
origin: org.activecomponents.jadex/jadex-editor-bpmn

mactivity.setActivityType(ModelContainer.ACTIVITY_MODES_TO_TYPES.containsKey(mode) ? ModelContainer.ACTIVITY_MODES_TO_TYPES.get(mode) : mode);
  mactivity.setActivityType(MBpmnModel.SUBPROCESS);
  vactivity = new VSubProcess(modelcontainer.getGraph());
  ((MSubProcess) mactivity).setSubprocessType(MSubProcess.SUBPROCESSTYPE_EVENT);
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.modelMActivitysetActivityType

Javadoc

Set the activity type.

Popular methods of MActivity

  • getActivityType
    Get the activity type.
  • getId
  • getName
  • <init>
  • addIncomingMessagingEdge
    Add an incoming message edge.
  • addIncomingSequenceEdge
    Add an incoming 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.
  • getEventHandlers,
  • getIncomingSequenceEdges,
  • getLane,
  • getOutgoingSequenceEdges,
  • getParameters,
  • getProperties,
  • getPropertyValue,
  • isEventHandler,
  • isThrowing

Popular in Java

  • Parsing JSON documents to java classes using gson
  • getSupportFragmentManager (FragmentActivity)
  • compareTo (BigDecimal)
  • setContentView (Activity)
  • InputStreamReader (java.io)
    A class for turning a byte stream into a character stream. Data read from the source input stream is
  • SocketTimeoutException (java.net)
    This exception is thrown when a timeout expired on a socket read or accept operation.
  • Timer (java.util)
    Timers schedule one-shot or recurring TimerTask for execution. Prefer java.util.concurrent.Scheduled
  • CountDownLatch (java.util.concurrent)
    A synchronization aid that allows one or more threads to wait until a set of operations being perfor
  • Handler (java.util.logging)
    A Handler object accepts a logging request and exports the desired messages to a target, for example
  • Logger (org.slf4j)
    The org.slf4j.Logger interface is the main user entry point of SLF4J API. It is expected that loggin
  • 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