Examples of addAction()


Examples of org.jbpm.graph.def.ExceptionHandler.addAction()

    {
      Element childElement = (Element)iter.next();
      if (ActionTypes.hasActionName(childElement.getName()))
      {
        Action action = createAction(childElement);
        exceptionHandler.addAction(action);
      }
    }
  }

  // transition destinations are parsed in a second pass //////////////////////
View Full Code Here

Examples of org.jbpm.graph.def.ProcessDefinition.addAction()

    instantiatableDelegate.setConfigType("bean");
    instantiatableDelegate.setConfiguration("<id>4</id><greeting>aloha</greeting>");
    Action action = new Action();
    action.setName("pina colada");
    action.setActionDelegation(instantiatableDelegate);
    processDefinition.addAction(action);
   
    // now create a reference to it from event node-enter on state 'a'
    State state = (State) processDefinition.addNode( new State() );
    Action refAction = new Action();
    refAction.setReferencedAction(action);
View Full Code Here

Examples of org.jdesktop.jdic.filetypes.Association.addAction()

                Association newAssoc = new Association();

                newAssoc.addFileExtension(FileExtensionFilter.getExtension(showFile));
                Action openAction = new Action("open", assoc.getActionByVerb("open").getCommand());
                newAssoc.addAction(openAction);

                assocService.registerSystemAssociation(newAssoc);
                shouldUnregister = true;
                return true;
            }
View Full Code Here

Examples of org.jdesktop.swingx.action.ActionManager.addAction()

        Icon iconValite = icons.getIcon("samples.validate");
        Action validateAction = new ValidateConfigurationAction("Validation",
                iconValite, samplesManagerModel);
        valiteButton = new JButton("Validation");
        valiteButton.setAction(validateAction);
        actionManager.addAction(validateAction);
        buttonPanel.add(valiteButton);

        // Initiate the button for reset
        Icon iconReset = icons.getIcon("samples.clearLine");
        Action resetAction = new ResetAction("Reset", iconReset, samplesManagerModel);
View Full Code Here

Examples of org.jenkinsci.plugins.workflow.cps.nodes.StepEndNode.addAction()

                FlowHead head = CpsThread.current().head;

                StepEndNode end = new StepEndNode(head.getExecution(),
                        (StepStartNode) head.getExecution().getNode(startNodeId),
                        head.get());
                end.addAction(new BodyInvocationAction());
                head.setNewHead(end);

                return end;
            } catch (IOException e) {
                LOGGER.log(Level.WARNING, "Failed to grow the flow graph", e);
View Full Code Here

Examples of org.jenkinsci.plugins.workflow.cps.nodes.StepStartNode.addAction()

     * @see Adapter#addBodyEndFlowNode()
     */
    private StepStartNode addBodyStartFlowNode(FlowHead head) {
        StepStartNode start = new StepStartNode(head.getExecution(),
                owner.getStepDescriptor(), head.get());
        start.addAction(new BodyInvocationAction());
        for (Action a : startNodeActions) {
            if (a!=null)
                start.addAction(a);
        }
        head.setNewHead(start);
View Full Code Here

Examples of org.jenkinsci.plugins.workflow.graph.FlowEndNode.addAction()

        // run till the end successfully FIXME: failure comes here, too
        // TODO: if program terminates with exception, we need to record it
        // TODO: in the error case, we have to close all the open nodes
        FlowNode head = new FlowEndNode(this, iotaStr(), (FlowStartNode)startNodes.pop(), result, getCurrentHeads().toArray(new FlowNode[0]));
        if (outcome.isFailure())
            head.addAction(new ErrorAction(outcome.getAbnormal()));

        // shrink everything into a single new head
        done = true;
        FlowHead first = getFirstHead();
        first.setNewHead(head);
View Full Code Here

Examples of org.jenkinsci.plugins.workflow.graph.FlowNode.addAction()

                            throw new IllegalStateException(node + " is offline");
                        }
                        WorkspaceList.Lease lease = computer.getWorkspaceList().allocate(p);
                        FilePath workspace = lease.path;
                        FlowNode flowNode = context.get(FlowNode.class);
                        flowNode.addAction(new WorkspaceActionImpl(workspace, flowNode));
                        listener.getLogger().println("Running on " + computer.getDisplayName() + " in " + workspace); // TODO hyperlink
                        context.invokeBodyLater(exec, computer, env, workspace).addCallback(new Callback(cookie, lease));
                        LOGGER.log(Level.FINE, "started {0}", cookie);
                    } else {
                        // just rescheduled after a restart; wait for task to complete
View Full Code Here

Examples of org.jivesoftware.smackx.packet.AdHocCommandData.addAction()

                    if (execute != null) {
                        adHocCommandData.setExecuteAction(AdHocCommand.Action.valueOf(execute));
                    }
                }
                else if (parser.getName().equals("next")) {
                    adHocCommandData.addAction(AdHocCommand.Action.next);
                }
                else if (parser.getName().equals("complete")) {
                    adHocCommandData.addAction(AdHocCommand.Action.complete);
                }
                else if (parser.getName().equals("prev")) {
View Full Code Here

Examples of org.maltparserx.parser.history.action.ComplexDecisionAction.addAction()

   
    transActionContainer.setAction(SHIFT);
    for (int i = 0; i < arcLabelActionContainers.length; i++) {
      arcLabelActionContainers[i].setAction(-1);
    }
    currentAction.addAction(actionContainers);
  }
 
  public String getName() {
    return "projective";
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.