Examples of DeploymentRef


Examples of org.jboss.bpm.console.client.model.DeploymentRef

    suspendBtn =  new Button("Retire", new ClickHandler() {

      public void onClick(ClickEvent clickEvent)
      {

        DeploymentRef deploymentRef = getSelection();
        if(deploymentRef!=null)
        {
          MessageBox.confirm("Retire deployment",
              "Do you want to retire this deployment? Any associated process will be suspended.",
              new MessageBox.ConfirmationCallback() {
                public void onResult(boolean doIt)
                {
                  if(doIt)
                  {
                    controller.handleEvent(
                        new Event(
                            SuspendDeploymentAction.ID,
                            getSelection().getId()
                        )
                    );
                  }
                }
              });
        }
        else
        {
          MessageBox.alert("Missing selection", "Please select a deployment");
        }
      }
    }
    );

    resumeBtn =  new Button("Activate", new ClickHandler() {
      public void onClick(ClickEvent clickEvent)
      {       
        DeploymentRef deploymentRef = getSelection();
        if(deploymentRef!=null)
        {
          MessageBox.confirm("Activate deployment",
              "Do you want to resume this deployment?",
              new MessageBox.ConfirmationCallback() {
View Full Code Here

Examples of org.jboss.bpm.console.client.model.DeploymentRef

{
  public final static String ID = UpdateDeploymentDetailAction.class.getName();

  public void execute(Controller controller, Object object)
  {
    DeploymentRef ref = object!=null ? (DeploymentRef)object : null;
    DeploymentDetailView view = (DeploymentDetailView)controller.getView(DeploymentDetailView.ID);

    if(null==ref)
    {
      // clear view
View Full Code Here

Examples of org.jboss.bpm.console.client.model.DeploymentRef

{
  public final static String ID = UpdateDeploymentDetailAction.class.getName();

  public void execute(Controller controller, Object object)
  {
    DeploymentRef ref = object!=null ? (DeploymentRef)object : null;
    DeploymentDetailView view = (DeploymentDetailView)controller.getView(DeploymentDetailView.ID);

    if(null==ref)
    {
      // clear view
View Full Code Here

Examples of org.jboss.bpm.console.client.model.DeploymentRef

      public void onChange(Widget widget)
      {
        int index = listBox.getSelectedIndex();
        if(index!=-1)
        {
          DeploymentRef item = listBox.getItem(index);

          controller.handleEvent(
              new Event(UpdateDeploymentDetailAction.ID, item)
          );
        }
View Full Code Here

Examples of org.jboss.bpm.console.client.model.DeploymentRef

      toolBar.add(
          new ToolButton("Delete", new ClickListener() {
            public void onClick(Widget sender) {

              DeploymentRef deploymentRef = getSelection();
              if(deploymentRef!=null)
              {
                MessageBox.confirm("Delete deployment",
                    "Do you want to delete this deployment? Any related data will be removed.",
                    new MessageBox.ConfirmationCallback() {
View Full Code Here

Examples of org.jboss.bpm.console.client.model.DeploymentRef

    }
  }

  public DeploymentRef getSelection()
  {
    DeploymentRef selection = null;
    if(isInitialized() && listBox.getSelectedIndex()!=-1)
      selection = listBox.getItem( listBox.getSelectedIndex());
    return selection;
  }
View Full Code Here

Examples of org.jboss.bpm.console.client.model.DeploymentRef

    final DefaultListModel<DeploymentRef> model =
        (DefaultListModel<DeploymentRef>) listBox.getModel();

    for(int i=0; i<model.size(); i++)
    {
      DeploymentRef ref = model.get(i);
      if(ref.getId().equals(deploymentId))
      {
        listBox.setSelectedIndex(i);
        break;
      }
    }
View Full Code Here

Examples of org.jboss.bpm.console.client.model.DeploymentRef


    suspendBtn =  new ToolButton("Suspend", new ClickListener() {
      public void onClick(Widget sender) {

        DeploymentRef deploymentRef = getSelection();
        if(deploymentRef!=null)
        {
          MessageBox.confirm("Suspend deployment",
              "Do you want to suspend this deployment? Any associated process will be suspended aswell.",
              new MessageBox.ConfirmationCallback() {
                public void onResult(boolean doIt)
                {
                  if(doIt)
                  {
                    controller.handleEvent(
                        new Event(
                            SuspendDeploymentAction.ID,
                            getSelection().getId()
                        )
                    );
                  }
                }
              });
        }
        else
        {
          MessageBox.alert("Missing selection", "Please select a deployment");
        }
      }
    }
    );
    resumeBtn =  new ToolButton("Resume", new ClickListener() {
      public void onClick(Widget sender) {

        DeploymentRef deploymentRef = getSelection();
        if(deploymentRef!=null)
        {
          MessageBox.confirm("Resume deployment",
              "Do you want to resume this deployment?",
              new MessageBox.ConfirmationCallback() {
View Full Code Here

Examples of org.jbpm.integration.spi.DeploymentRef

        JBPMDeploymentMetaData md = new JBPMDeploymentMetaData();
        md.setClassloader(subDeployment.localCl);
        md.setWatch(rootDeployment.watch);
        md.setProcessDescriptor(subDeployment.url);

        DeploymentRef deploymentRef;

        try
        {
          deploymentRef = adaptor.deploy(md);
          deploymentRefs.add(deploymentRef);
View Full Code Here

Examples of org.jbpm.integration.spi.DeploymentRef

    // associate classloader
    deployment.setClassloader(unit.getClassLoader());

    try
    {
      DeploymentRef deploymentRef = adaptor.deploy(deployment);
      // TODO: mark the process 'ready', classloader assoc
      unit.addAttachment("jbpm.deployment.ref", deploymentRef);
    }
    catch (Throwable t)
    {     
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.