Tabnine Logo
ProcessSummary.getProcessDefId
Code IndexAdd Tabnine to your IDE (free)

How to use
getProcessDefId
method
in
org.jbpm.workbench.pr.model.ProcessSummary

Best Java code snippets using org.jbpm.workbench.pr.model.ProcessSummary.getProcessDefId (Showing top 7 results out of 315)

origin: org.jbpm/jbpm-wb-forms-client

protected void loadFormValues(String serverTemplateId) {
  this.serverTemplateId = serverTemplateId;
  processDefinitionsListBox.clear();
  processRuntimeDataService.call((List<ProcessSummary> processSummaries) -> {
    //Skip case definitions (isDynamic == true)
    Map<String, List<ProcessSummary>> defs = processSummaries.stream().filter(p -> p.isDynamic() == false).collect(groupingBy(ProcessSummary::getDeploymentId));
    defs.keySet().stream().sorted().forEach(deploymentId -> {
      final OptGroup group = GWT.create(OptGroup.class);
      group.setLabel(deploymentId);
      defs.get(deploymentId).stream().sorted().forEach(p -> {
        final Option option = GWT.create(Option.class);
        option.setText(p.getProcessDefId());
        option.setValue(p.getProcessDefId());
        group.add(option);
      });
      processDefinitionsListBox.add(group);
    });
    Scheduler.get().scheduleDeferred(() -> processDefinitionsListBox.refresh());
  }).getProcesses(serverTemplateId,
          0,
          Integer.MAX_VALUE,
          FIELD_ID_PROCESSNAME,
          true);
}
origin: kiegroup/jbpm-wb

protected void loadFormValues(String serverTemplateId) {
  this.serverTemplateId = serverTemplateId;
  processDefinitionsListBox.clear();
  processRuntimeDataService.call((List<ProcessSummary> processSummaries) -> {
    //Skip case definitions (isDynamic == true)
    Map<String, List<ProcessSummary>> defs = processSummaries.stream().filter(p -> p.isDynamic() == false).collect(groupingBy(ProcessSummary::getDeploymentId));
    defs.keySet().stream().sorted().forEach(deploymentId -> {
      final OptGroup group = GWT.create(OptGroup.class);
      group.setLabel(deploymentId);
      defs.get(deploymentId).stream().sorted().forEach(p -> {
        final Option option = GWT.create(Option.class);
        option.setText(p.getProcessDefId());
        option.setValue(p.getProcessDefId());
        group.add(option);
      });
      processDefinitionsListBox.add(group);
    });
    Scheduler.get().scheduleDeferred(() -> processDefinitionsListBox.refresh());
  }).getProcesses(serverTemplateId,
          0,
          Integer.MAX_VALUE,
          FIELD_ID_PROCESSNAME,
          true);
}
origin: org.jbpm/jbpm-wb-process-runtime-client

private void fireProcessDefSelectionEvent(final ProcessSummary processSummary) {
  processDefSelected.fire(new ProcessDefSelectionEvent(processSummary.getProcessDefId(),
                             processSummary.getDeploymentId(),
                             getSelectedServerTemplate(),
                             processSummary.getProcessDefName(),
                             processSummary.isDynamic()));
}
origin: org.jbpm/jbpm-wb-process-runtime-client

  protected List<ConditionalAction<ProcessSummary>> getConditionalActions() {
    return Arrays.asList(

        new ConditionalAction<>(
            constants.Start(),
            processSummary ->
                presenter.openGenericForm(processSummary.getProcessDefId(),
                             processSummary.getDeploymentId(),
                             processSummary.getProcessDefName(),
                             processSummary.isDynamic()),
            presenter.getStartCondition(),
            false
        ),

        new ConditionalAction<>(
            constants.View_Process_Instances(),
            processSummary ->
                presenter.viewProcessInstances(processSummary.getProcessDefId()),
            presenter.getViewProcessInstanceActionCondition(),
            true
        )
    );
  }
}
origin: org.jbpm/jbpm-wb-process-runtime-client

@Test
public void testProcessDefNameDefinitionPropagation() {
  final ProcessSummary processSummary = new ProcessSummary();
  processSummary.setProcessDefId("testProcessDefId");
  processSummary.setDeploymentId("testDeploymentId");
  processSummary.setProcessDefName("testProcessDefName");
  processSummary.setDynamic(false);
  presenter.selectProcessDefinition(processSummary);
  verify(processDefSelectionEvent).fire(any(ProcessDefSelectionEvent.class));
  ArgumentCaptor<ProcessDefSelectionEvent> argument = ArgumentCaptor.forClass(ProcessDefSelectionEvent.class);
  verify(processDefSelectionEvent).fire(argument.capture());
  final ProcessDefSelectionEvent event = argument.getValue();
  assertEquals(processSummary.getProcessDefName(),
         event.getProcessDefName());
  assertEquals(processSummary.getDeploymentId(),
         event.getDeploymentId());
  assertEquals(processSummary.getProcessDefId(),
         event.getProcessId());
  assertEquals(processSummary.isDynamic(),
         event.isDynamic());
  verify(breadcrumbs).addBreadCrumb(eq(PERSPECTIVE_ID),
                   eq(Constants.INSTANCE.ProcessDefinitionBreadcrumb((processSummary.getName()))),
                   eq(Commands.DO_NOTHING));
}
origin: kiegroup/jbpm-wb

public static void assertProcessSummary(final ProcessDefinition pd,
                    final ProcessSummary ps) {
  assertNotNull(ps);
  assertEquals(pd.getId(),
         ps.getId());
  assertEquals(pd.getId(),
         ps.getProcessDefId());
  assertEquals(pd.getName(),
         ps.getName());
  assertEquals(pd.getName(),
         ps.getProcessDefName());
  assertEquals(pd.isDynamic(),
         ps.isDynamic());
  assertEquals(pd.getVersion(),
         ps.getVersion());
  assertEquals(pd.getContainerId(),
         ps.getDeploymentId());
  assertEquals(pd.getAssociatedEntities(),
         ps.getAssociatedEntities());
  assertEquals(pd.getProcessVariables(),
         ps.getProcessVariables());
  assertEquals(pd.getReusableSubProcesses(),
         ps.getReusableSubProcesses());
  assertEquals(pd.getServiceTasks(),
         ps.getServiceTasks());
  assertThat(ps.getNodes()).hasSameSizeAs(pd.getNodes());
  assertThat(ps.getTimers()).hasSameSizeAs(pd.getTimers());
}
origin: org.jbpm/jbpm-wb-process-runtime-backend

public static void assertProcessSummary(final ProcessDefinition pd,
                    final ProcessSummary ps) {
  assertNotNull(ps);
  assertEquals(pd.getId(),
         ps.getId());
  assertEquals(pd.getId(),
         ps.getProcessDefId());
  assertEquals(pd.getName(),
         ps.getName());
  assertEquals(pd.getName(),
         ps.getProcessDefName());
  assertEquals(pd.isDynamic(),
         ps.isDynamic());
  assertEquals(pd.getVersion(),
         ps.getVersion());
  assertEquals(pd.getContainerId(),
         ps.getDeploymentId());
  assertEquals(pd.getAssociatedEntities(),
         ps.getAssociatedEntities());
  assertEquals(pd.getProcessVariables(),
         ps.getProcessVariables());
  assertEquals(pd.getReusableSubProcesses(),
         ps.getReusableSubProcesses());
  assertEquals(pd.getServiceTasks(),
         ps.getServiceTasks());
  assertThat(ps.getNodes()).hasSameSizeAs(pd.getNodes());
  assertThat(ps.getTimers()).hasSameSizeAs(pd.getTimers());
}
org.jbpm.workbench.pr.modelProcessSummarygetProcessDefId

Popular methods of ProcessSummary

  • <init>
  • isDynamic
  • getDeploymentId
  • getName
  • getProcessDefName
  • getAssociatedEntities
  • getNodes
  • getProcessVariables
  • getReusableSubProcesses
  • getServiceTasks
  • getTimers
  • setAssociatedEntities
  • getTimers,
  • setAssociatedEntities,
  • setDeploymentId,
  • setDynamic,
  • setNodes,
  • setProcessDefId,
  • setProcessDefName,
  • setProcessVariables,
  • setReusableSubProcesses

Popular in Java

  • Start an intent from android
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • findViewById (Activity)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • Pointer (com.sun.jna)
    An abstraction for a native pointer data type. A Pointer instance represents, on the Java side, a na
  • URL (java.net)
    A Uniform Resource Locator that identifies the location of an Internet resource as specified by RFC
  • Charset (java.nio.charset)
    A charset is a named mapping between Unicode characters and byte sequences. Every Charset can decode
  • ArrayList (java.util)
    ArrayList is an implementation of List, backed by an array. All optional operations including adding
  • TimeUnit (java.util.concurrent)
    A TimeUnit represents time durations at a given unit of granularity and provides utility methods to
  • Location (org.springframework.beans.factory.parsing)
    Class that models an arbitrary location in a Resource.Typically used to track the location of proble
  • Top plugins for WebStorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now