Package org.jboss.bpm.console.client.model

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


    for(TProcessInfo pi : processInfoListDocument.getProcessInfoList().getProcessInfoList())
    {
      QName processQName = pi.getDefinitionInfo().getProcessName();
     
      ProcessDefinitionRef def = new ProcessDefinitionRef(
          encodeId(pi.getPid()),
          processQName.toString(),
          pi.getVersion()
      );

      def.setPackageName(processQName.getNamespaceURI());
      def.setDeploymentId(pi.getDeploymentInfo().getPackage());
      def.setSuspended( pi.getStatus() == TProcessStatus.RETIRED );// Used in ProcessEnginePluginImpl

      results.add(def);
    }
   
    return results;
View Full Code Here


        List<ProcessDefinitionRef> refs = new ArrayList<ProcessDefinitionRef>();

        List<String> keys = ds.getProcessDefinitions();

        for (String id : keys) {
            ProcessDefinitionRef ref = new ProcessDefinitionRef();
            ref.setName(id);
            ref.setId(ModelAdaptor.encodeId(id));

            refs.add(ref);
        }

        return refs;
View Full Code Here

 
  @Test
  public void testProcessDefinition(){
   
    org.drools.definition.process.Process process =   delegate.getProcess("Minimal");
    ProcessDefinitionRef processDefinitionRef = Transform.processDefinition(process);
    assertEquals(processDefinitionRef.getId(),process.getId());
    assertEquals(processDefinitionRef.getPackageName(),process.getPackageName());
    assertEquals(processDefinitionRef.getName(),process.getName());
  }
View Full Code Here

    try {
      version = new Long(process.getVersion());
    } catch (NumberFormatException e) {
      // Do nothing, keep version 0
    }
    ProcessDefinitionRef result = new ProcessDefinitionRef(
      process.getId(), process.getName(), version);
    result.setPackageName(process.getPackageName());
    result.setDeploymentId("N/A");
    return result;
  }
View Full Code Here

  }

  public void handleSuccessfulResponse(final Controller controller, final Object event, Response response)
  {
    InstanceListView view = (InstanceListView) controller.getView(InstanceListView.ID);
    ProcessDefinitionRef def = view.getCurrentDefinition();

    // force reload instance list
    controller.handleEvent( new Event(UpdateInstancesAction.ID, def));
  }
View Full Code Here

  }

  public void handleSuccessfulResponse(final Controller controller, final Object event, Response response)
  {
    InstanceListView view = (InstanceListView) controller.getView(InstanceListView.ID);
    ProcessDefinitionRef def = view.getCurrentDefinition();

    // refresh instances
    controller.handleEvent(
        new Event(
            UpdateInstancesAction.ID,
View Full Code Here

                                    {
                                        String url = getCurrentDefinition().getFormUrl();
                                        boolean hasForm = (url != null && !url.equals(""));
                                        if (hasForm)
                                        {
                                            ProcessDefinitionRef definition = getCurrentDefinition();
                                            iframeWindow = new IFrameWindowPanel(
                                                    definition.getFormUrl(), "New Process Instance: " + definition.getId()
                                            );

                                            iframeWindow.setCallback(
                                                    new IFrameWindowCallback()
                                                    {
View Full Code Here

          .orderAsc(ProcessDefinitionQuery.PROPERTY_NAME)
          .list();
    
      for(ProcessDefinition processDefinition : activePds)
      {
        ProcessDefinitionRef ref = ModelAdaptor.adoptDefinition(processDefinition);
        results.add(ref);
      }

      // suspended  processes
      ProcessDefinitionQuery pdQuery2 = repositoryService.createProcessDefinitionQuery();
      pdQuery2.suspended();
      List<ProcessDefinition> suspendedPds = pdQuery2.list();

      for(ProcessDefinition p : suspendedPds)
      {
        ProcessDefinitionRef ref = ModelAdaptor.adoptDefinition(p);
        ref.setSuspended(true);       
        results.add(ref);
      }

      return results;
    }
View Full Code Here

                                    {
                                        String url = getCurrentDefinition().getFormUrl();
                                        boolean hasForm = (url != null && !url.equals(""));
                                        if (hasForm)
                                        {
                                            ProcessDefinitionRef definition = getCurrentDefinition();
                                            iframeWindow = new IFrameWindowPanel(
                                                    definition.getFormUrl(), "New Process Instance: " + definition.getId()
                                            );

                                            iframeWindow.setCallback(
                                                    new IFrameWindowCallback()
                                                    {
View Full Code Here

                                    {
                                        String url = getCurrentDefinition().getFormUrl();
                                        boolean hasForm = (url != null && !url.equals(""));
                                        if (hasForm)
                                        {
                                            ProcessDefinitionRef definition = getCurrentDefinition();
                                            iframeWindow = new IFrameWindowPanel(
                                                    definition.getFormUrl(), "New Process Instance: " + definition.getId()
                                            );

                                            iframeWindow.setCallback(
                                                    new IFrameWindowCallback()
                                                    {
View Full Code Here

TOP

Related Classes of org.jboss.bpm.console.client.model.ProcessDefinitionRef

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.