Package org.openbp.core.model

Examples of org.openbp.core.model.ModelQualifier


  @Test
  public void testDeterminePossibleExitsMethod()
    throws Exception
  {
    ModelMgr modelMgr = getProcessServer().getModelMgr();
    ModelQualifier qualifier = new ModelQualifier(PROCESSREF);
    qualifier.setItemType(ItemTypes.PROCESS);
    ProcessItem process = (ProcessItem) modelMgr.getItemByQualifier(qualifier, true);
 
    Node startNode = process.getNodeByName("Start");
    assertTrue(startNode instanceof InitialNode);
    NodeSocket socket = (NodeSocket) startNode.getDefaultEntrySocket();
View Full Code Here


      // We should breakpoint all Qualifiers if at least one of them is not yet breakpointed.
      boolean setBp = false;
      for (int iQualifiers = 0; iQualifiers < nQualifiers; ++iQualifiers)
      {
        ModelQualifier qualifier = (ModelQualifier) qualifiers.get(iQualifiers);
        if (! hasBreakpoint(qualifier))
        {
          setBp = true;
          break;
        }
      }

      // Set or remove the breakpoints
      try
      {
        for (int iQualifiers = 0; iQualifiers < nQualifiers; ++iQualifiers)
        {
          ModelQualifier qualifier = (ModelQualifier) qualifiers.get(iQualifiers);
          boolean hasBp = hasBreakpoint(qualifier);

          if (setBp)
          {
            if (! hasBp)
View Full Code Here

     * @param je Event
     * @return The event status code
     */
    public JaspiraEventHandlerCode toggleBreakpoint(QualifierEvent je)
    {
      ModelQualifier target = je.getQualifier();

      try
      {
        if (hasBreakpoint(target))
        {
View Full Code Here

      if (! autoSave())
        return EVENT_CONSUMED;

      setHaltedPosition(null);

      ModelQualifier target = je.getQualifier();

      try
      {
        getDebugger().stepUntil(clientId, target.toString());
        startPoller();
      }
      catch (Exception e)
      {
        handleError(e);
View Full Code Here

     * @return The event status code
     */
    public JaspiraEventHandlerCode nodeentry(DebuggerServerEvent dse)
    {
      // Highlight node and socket
      ModelQualifier pos = new ModelQualifier(dse.getHaltedPosition());
      setHaltedPosition(pos);

      return EVENT_HANDLED;
    }
View Full Code Here

     * @return The event status code
     */
    public JaspiraEventHandlerCode nodeexit(DebuggerServerEvent dse)
    {
      // Turn off highlighting
      ModelQualifier pos = new ModelQualifier(dse.getHaltedPosition());
      setHaltedPosition(pos);

      return EVENT_HANDLED;
    }
View Full Code Here

     * @return The event status code
     */
    public JaspiraEventHandlerCode dataflow(DebuggerServerEvent dse)
    {
      DebuggerEvent de = dse.getDebuggerEvent();
      ModelQualifier pos = dse.getHaltedPosition();

      if (ViewModeMgr.getInstance().isDataLinkVisible())
      {
        setHaltedPosition(new ModelQualifier(pos));
      }

      // Run data flow animation if we should (i. e. if allowed by cockpit settings
      // and if the data flow lines are visible at all).
      // After the animation finishes, a step next command will be issued.
View Full Code Here

     * @param dse Event
     * @return The event status code
     */
    public JaspiraEventHandlerCode processexception(DebuggerServerEvent dse)
    {
      ModelQualifier haltedPosition = dse.getHaltedPosition();
      setHaltedPosition(new ModelQualifier(haltedPosition));

      ModelQualifier msgPosition = new ModelQualifier(haltedPosition);
      msgPosition.setObjectPath(null);
      String message = "Exception in process '" + msgPosition + "':";

      if (dse.getException() != null)
      {
        fireEvent(new ErrorEvent(DebuggerPlugin.this, message, dse.getException()));
View Full Code Here

   * Gets the reference to the item.
   * @return The qualified name
   */
  public ModelQualifier getQualifier()
  {
    return new ModelQualifier(this);
  }
View Full Code Here

  public synchronized boolean addModel(Model model)
  {
    model.setModelMgr(this);

    // Check if model already exists
    ModelQualifier qualifier = model.getQualifier();
    if (allModels.get(qualifier) != null)
      throw new ModelException("Operation", "Model '" + qualifier + "' already exists");

    addModelToStore(model);
View Full Code Here

TOP

Related Classes of org.openbp.core.model.ModelQualifier

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.